dataLists(new MarketingProjectFilingLists()); } /** * @notes 添加市场经营--项目备案 * @return \think\response\Json * @author likeadmin * @date 2024/04/05 10:36 */ public function add() { $params = (new MarketingProjectFilingValidate())->post()->goCheck('add'); $result = MarketingProjectFilingLogic::add($params); if (true === $result) { return $this->success('添加成功', [], 1, 1); } return $this->fail(MarketingProjectFilingLogic::getError()); } /** * @notes 编辑市场经营--项目备案 * @return \think\response\Json * @author likeadmin * @date 2024/04/05 10:36 */ public function edit() { $params = (new MarketingProjectFilingValidate())->post()->goCheck('edit'); $result = MarketingProjectFilingLogic::edit($params); if (true === $result) { return $this->success('编辑成功', [], 1, 1); } return $this->fail(MarketingProjectFilingLogic::getError()); } /** * @notes 删除市场经营--项目备案 * @return \think\response\Json * @author likeadmin * @date 2024/04/05 10:36 */ public function delete() { $params = (new MarketingProjectFilingValidate())->post()->goCheck('delete'); $result = MarketingProjectFilingLogic::delete($params); if (true === $result) { return $this->success('删除成功', [], 1, 1); } return $this->fail(MarketingProjectFilingLogic::getError()); } /** * @notes 获取市场经营--项目备案详情 * @return \think\response\Json * @author likeadmin * @date 2024/04/05 10:36 */ public function detail() { $params = (new MarketingProjectFilingValidate())->goCheck('detail'); $result = MarketingProjectFilingLogic::detail($params); return $this->data($result); } }