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 'checkingInSetWorkTime_state.dart'; class CheckingInSetWorkTimeLogic extends BaseGetXController{ CheckingInSetWorkTimeState state = CheckingInSetWorkTimeState(); // 编辑考勤设置信息 Future editCheckInSetInfoData() async{ final LoginEntity entity = await ApiRepository.to.editCheckInSetInfoData( attendanceType: state.checkingInSetInfo.value.attendanceType.toString(), companyId: state.checkingInSetInfo.value.companyId.toString(), type: '2', companyName: state.checkingInSetInfo.value.companyName ?? '', workEndTime: state.endTimeTimestamp.value.toString(), workStartTime: state.beginTimeTimestamp.value.toString(), workDay:state.checkingInSetInfo.value.workDay!, ); if(entity.errorCode!.codeIsSuccessful){ showToast('修改成功'.tr, something: (){ Get.back(result: 'scuess'); }); } } }