labour_service_impl.dart 980 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. import 'package:cpt_labour/modules/labour_review_list/labour_review_page.dart';
  2. import 'package:plugin_basic/basic_export.dart';
  3. import 'package:router/componentRouter/labour_service.dart';
  4. import 'package:shared/utils/log_utils.dart';
  5. import '../modules/labour_request_list/labour_request_list_page.dart';
  6. import '../modules/labour_template_list/labour_template_list_page.dart';
  7. class LabourServiceImpl extends GetxService implements LabourService {
  8. @override
  9. void startLabourRequestPage() {
  10. LabourRequestListPage.startInstance();
  11. }
  12. @override
  13. void startLabourTemplatePage() {
  14. LabourTemplateListPage.startInstance();
  15. }
  16. @override
  17. void startLabourReviewPage() {
  18. LabourReviewPage.startInstance();
  19. }
  20. @override
  21. void onInit() {
  22. super.onInit();
  23. //初始化资源
  24. Log.d("LabourServiceImpl 初始化资源");
  25. }
  26. @override
  27. void onClose() {
  28. super.onClose();
  29. //销毁资源
  30. Log.d("LabourServiceImpl 销毁资源");
  31. }
  32. }