You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

26 lines
930 B

2 weeks ago
import 'package:get/get.dart';
import 'package:problem_check_system/data/repositories/auth_repository.dart';
import 'package:problem_check_system/data/repositories/problem_repository.dart';
2 weeks ago
import 'package:problem_check_system/modules/home/controllers/home_controller.dart';
import 'package:problem_check_system/modules/my/controllers/my_controller.dart';
import 'package:problem_check_system/modules/problem/controllers/problem_controller.dart';
class HomeBinding implements Bindings {
@override
void dependencies() {
/// 注册主页控制器
2 weeks ago
Get.lazyPut<HomeController>(() => HomeController());
/// 注册问题控制器
Get.lazyPut<ProblemController>(
() => ProblemController(problemRepository: Get.find<ProblemRepository>()),
fenix: true,
2 weeks ago
);
/// 注册我的控制器
Get.lazyPut<MyController>(
() => MyController(authRepository: Get.find<AuthRepository>()),
);
2 weeks ago
}
}