25 lines
737 B
Dart
25 lines
737 B
Dart
import 'package:get/get.dart';
|
|
import 'package:wgshare/common/models/common/base_structure_result.dart';
|
|
import 'package:wgshare/common/mixins/request_tool_mixin.dart';
|
|
|
|
import 'home_state.dart';
|
|
|
|
class HomeLogic extends GetxController with RequestToolMixin {
|
|
final HomeState state = HomeState();
|
|
|
|
@override
|
|
void onInit() {
|
|
super.onInit();
|
|
}
|
|
|
|
void getTask() async {
|
|
// BaseStructureResult<StadyTask> res = await getClient().getStadyTask(state.currentSubject.value.subjectId);
|
|
// if (res.data != null) {
|
|
// state.morningTask.value = res.data!.morningTask ?? MorningTask(00, '', '', '');
|
|
// state.nightTask.value = res.data!.nightTask ?? MorningTask(00, '', '', '');
|
|
// }
|
|
}
|
|
|
|
void out() async {}
|
|
}
|