dataLists(new OaPersonalQuitLists()); } /** * @notes 添加离职档案 * @return \think\response\Json * @author likeadmin * @date 2024/05/23 09:43 */ public function add() { $params = (new OaPersonalQuitValidate())->post()->goCheck('add'); $result = OaPersonalQuitLogic::add($params,$this->adminId); if (true === $result) { return $this->success('添加成功', [], 1, 1); } return $this->fail(OaPersonalQuitLogic::getError()); } /** * @notes 编辑离职档案 * @return \think\response\Json * @author likeadmin * @date 2024/05/23 09:43 */ public function edit() { $params = (new OaPersonalQuitValidate())->post()->goCheck('edit'); $result = OaPersonalQuitLogic::edit($params,$this->adminId); if (true === $result) { return $this->success('编辑成功', [], 1, 1); } return $this->fail(OaPersonalQuitLogic::getError()); } /** * @notes 删除离职档案 * @return \think\response\Json * @author likeadmin * @date 2024/05/23 09:43 */ public function delete() { $params = (new OaPersonalQuitValidate())->post()->goCheck('delete'); OaPersonalQuitLogic::delete($params); return $this->success('删除成功', [], 1, 1); } /** * @notes 获取离职档案详情 * @return \think\response\Json * @author likeadmin * @date 2024/05/23 09:43 */ public function detail() { $params = (new OaPersonalQuitValidate())->goCheck('detail'); $result = OaPersonalQuitLogic::detail($params); return $this->data($result); } }