dataLists(new OperationFeedingLogLists()); } /** * @notes 添加 * @return \think\response\Json * @author likeadmin * @date 2024/01/15 10:09 */ public function add() { $params = (new OperationFeedingLogValidate())->post()->goCheck('add'); $result = OperationFeedingLogLogic::add($params); if (true === $result) { return $this->success('添加成功', [], 1, 1); } return $this->fail(OperationFeedingLogLogic::getError()); } /** * @notes 编辑 * @return \think\response\Json * @author likeadmin * @date 2024/01/15 10:09 */ public function edit() { $params = (new OperationFeedingLogValidate())->post()->goCheck('edit'); $result = OperationFeedingLogLogic::edit($params); if (true === $result) { return $this->success('编辑成功', [], 1, 1); } return $this->fail(OperationFeedingLogLogic::getError()); } /** * @notes 删除 * @return \think\response\Json * @author likeadmin * @date 2024/01/15 10:09 */ public function delete() { $params = (new OperationFeedingLogValidate())->post()->goCheck('delete'); OperationFeedingLogLogic::delete($params); return $this->success('删除成功', [], 1, 1); } /** * @notes 获取详情 * @return \think\response\Json * @author likeadmin * @date 2024/01/15 10:09 */ public function detail() { $params = (new OperationFeedingLogValidate())->goCheck('detail'); $result = OperationFeedingLogLogic::detail($params); return $this->data($result); } }