123456789101112131415161718192021222324252627 |
- //
- // import 'package:domain/constants/api_constants.dart';
- // import 'package:domain/repository/auth_repository.dart';
- // import 'package:get/get.dart';
- // import 'package:cpt_auth/intercept/interceptor_status_code_dio.dart';
- // import 'package:plugin_basic/service/user_service.dart';
- // import 'package:plugin_platform/http/http_provider.dart';
- //
- // ///异步注入构造方法中的对象 用于Api网络请求相关的注入
- // ///主要是在App初始化的时候就注入到依赖注入的池里面,并单例持久化
- // class AppBinding extends Bindings {
- // @override
- // void dependencies() async {
- // Get.put(HttpProvider(ApiConstants.baseUrl, interceptors: [StatusCodeDioInterceptors()]), permanent: true);
- //
- // Get.put(AuthRepository(httpProvider: Get.find()));
- //
- // // 用户信息服务(用户信息相关业务类)
- // Get.put(UserService(Get.find()));
- // // Get.lazyPut(() => WXPlatformService());
- // // Get.lazyPut(() => QQPlatformService());
- // // Get.lazyPut(() => JVerifyService());
- //
- // // Get.lazyPut<ProfileService>(() => ProfileServiceImpl());
- // }
- // }
|