import 'package:get/get.dart'; import 'package:star_lock/login/login/entity/LoginEntity.dart'; import 'package:star_lock/tools/baseGetXController.dart'; import '../../../../../network/api_repository.dart'; import 'checkingInDeletHolidays_state.dart'; class CheckingInDeletHolidaysLogic extends BaseGetXController{ CheckingInDeletHolidaysState state = CheckingInDeletHolidaysState(); // 删除假期 Future deletStaffLoadData() async{ final LoginEntity entity = await ApiRepository.to.deletHolidaysData( vacationId: state.listItem.value.vacationId.toString() ); if(entity.errorCode!.codeIsSuccessful){ showToast('删除成功'.tr); Get.back(result: 'deletScuess'); } } }