job_service_impl.dart 786 B

12345678910111213141516171819202122232425262728293031323334
  1. import 'package:cpt_job/modules/job_list/job_list_page.dart';
  2. import 'package:plugin_basic/basic_export.dart';
  3. import 'package:router/componentRouter/job_service.dart';
  4. import 'package:shared/utils/log_utils.dart';
  5. import '../modules/sign_in_sign_out/sign_in_sign_out_page.dart';
  6. class JobServiceImpl extends GetxService implements JobService {
  7. @override
  8. void onInit() {
  9. super.onInit();
  10. //初始化资源
  11. Log.d("JobServiceImpl 初始化资源");
  12. }
  13. @override
  14. void onClose() {
  15. super.onClose();
  16. //销毁资源
  17. Log.d("JobServiceImpl 销毁资源");
  18. }
  19. // 启动签到签出页面
  20. @override
  21. void startSignInSignOutPage() {
  22. SignInSignOutPage.startInstance();
  23. }
  24. @override
  25. void startJobListPage() {
  26. JobListPage.startInstance();
  27. }
  28. }