dataLists(new OaMessageLists()); } /** * @notes 添加系统消息 * @return \think\response\Json * @author likeadmin * @date 2024/05/29 14:04 */ // public function add() // { // $params = (new OaMessageValidate())->post()->goCheck('add'); // $result = OaMessageLogic::add($params); // if (true === $result) { // return $this->success('添加成功', [], 1, 1); // } // return $this->fail(OaMessageLogic::getError()); // } /** * @notes 编辑系统消息 * @return \think\response\Json * @author likeadmin * @date 2024/05/29 14:04 */ // public function edit() // { // $params = (new OaMessageValidate())->post()->goCheck('edit'); // $result = OaMessageLogic::edit($params); // if (true === $result) { // return $this->success('编辑成功', [], 1, 1); // } // return $this->fail(OaMessageLogic::getError()); // } /** * @notes 删除系统消息 * @return \think\response\Json * @author likeadmin * @date 2024/05/29 14:04 */ public function delete() { $params = (new OaMessageValidate())->post()->goCheck('delete'); OaMessageLogic::delete($params); return $this->success('删除成功', [], 1, 1); } /** * @notes 获取系统消息详情 * @return \think\response\Json * @author likeadmin * @date 2024/05/29 14:04 */ public function detail() { $params = (new OaMessageValidate())->goCheck('detail'); $result = OaMessageLogic::detail($params); return $this->data($result); } }