dataLists(new ProjectAttendanceDetailLists()); } /** * @notes 添加考勤明细 * @return \think\response\Json * @author likeadmin * @date 2023/12/26 10:54 */ public function add() { $params = (new ProjectAttendanceDetailValidate())->post()->goCheck('add'); $result = ProjectAttendanceDetailLogic::add($params); if (true === $result) { return $this->success('添加成功', [], 1, 1); } return $this->fail(ProjectAttendanceDetailLogic::getError()); } /** * @notes 编辑考勤明细 * @return \think\response\Json * @author likeadmin * @date 2023/12/26 10:54 */ public function edit() { $params = (new ProjectAttendanceDetailValidate())->post()->goCheck('edit'); $result = ProjectAttendanceDetailLogic::edit($params); if (true === $result) { return $this->success('编辑成功', [], 1, 1); } return $this->fail(ProjectAttendanceDetailLogic::getError()); } /** * @notes 删除考勤明细 * @return \think\response\Json * @author likeadmin * @date 2023/12/26 10:54 */ public function delete() { $params = (new ProjectAttendanceDetailValidate())->post()->goCheck('delete'); ProjectAttendanceDetailLogic::delete($params); return $this->success('删除成功', [], 1, 1); } /** * @notes 获取考勤明细详情 * @return \think\response\Json * @author likeadmin * @date 2023/12/26 10:54 */ public function detail() { $params = (new ProjectAttendanceDetailValidate())->goCheck('detail'); $result = ProjectAttendanceDetailLogic::detail($params); return $this->data($result); } }