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