dataLists(new OaWorkCommentLists()); } /** * @notes 添加工作汇报点评表 * @return \think\response\Json * @author likeadmin * @date 2024/05/23 17:39 */ public function add() { $params = (new OaWorkCommentValidate())->post()->goCheck('add'); $result = OaWorkCommentLogic::add($params,$this->adminId); if (true === $result) { return $this->success('添加成功', [], 1, 1); } return $this->fail(OaWorkCommentLogic::getError()); } /** * @notes 编辑工作汇报点评表 * @return \think\response\Json * @author likeadmin * @date 2024/05/23 17:39 */ public function edit() { $params = (new OaWorkCommentValidate())->post()->goCheck('edit'); $result = OaWorkCommentLogic::edit($params); if (true === $result) { return $this->success('编辑成功', [], 1, 1); } return $this->fail(OaWorkCommentLogic::getError()); } /** * @notes 删除工作汇报点评表 * @return \think\response\Json * @author likeadmin * @date 2024/05/23 17:39 */ public function delete() { $params = (new OaWorkCommentValidate())->post()->goCheck('delete'); OaWorkCommentLogic::delete($params); return $this->success('删除成功', [], 1, 1); } /** * @notes 获取工作汇报点评表详情 * @return \think\response\Json * @author likeadmin * @date 2024/05/23 17:39 */ public function detail() { $params = (new OaWorkCommentValidate())->goCheck('detail'); $result = OaWorkCommentLogic::detail($params); return $this->data($result); } }