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.
18 lines
521 B
18 lines
521 B
import 'package:get/get.dart';
|
|
import '../controllers/translation_stats_controller.dart';
|
|
import '../../../data/services/translation_usage_service.dart';
|
|
|
|
class TranslationStatsBinding implements Bindings {
|
|
@override
|
|
void dependencies() {
|
|
// 确保服务已注册
|
|
if (!Get.isRegistered<TranslationUsageService>()) {
|
|
Get.put(TranslationUsageService(), permanent: true);
|
|
}
|
|
|
|
// 注册控制器
|
|
Get.lazyPut<TranslationStatsController>(
|
|
() => TranslationStatsController(),
|
|
);
|
|
}
|
|
}
|
|
|