dataLists(new MarketingCustomLists()); } /** * @notes 添加市场经营--客户信息 * @return \think\response\Json * @author likeadmin * @date 2024/04/01 14:26 */ public function add() { $params = (new MarketingCustomValidate())->post()->goCheck('add'); $result = MarketingCustomLogic::add($params); if (true === $result) { return $this->success('添加成功', [], 1, 1); } return $this->fail(MarketingCustomLogic::getError()); } /** * @notes 编辑市场经营--客户信息 * @return \think\response\Json * @author likeadmin * @date 2024/04/01 14:26 */ public function edit() { $params = (new MarketingCustomValidate())->post()->goCheck('edit'); $result = MarketingCustomLogic::edit($params); if (true === $result) { return $this->success('编辑成功', [], 1, 1); } return $this->fail(MarketingCustomLogic::getError()); } /** * @notes 删除市场经营--客户信息 * @return \think\response\Json * @author likeadmin * @date 2024/04/01 14:26 */ public function delete() { $params = (new MarketingCustomValidate())->post()->goCheck('delete'); $result = MarketingCustomLogic::delete($params); if (true === $result) { return $this->success('删除成功', [], 1, 1); } return $this->fail(MarketingCustomLogic::getError()); } /** * @notes 获取市场经营--客户信息详情 * @return \think\response\Json * @author likeadmin * @date 2024/04/01 14:26 */ public function detail() { $params = (new MarketingCustomValidate())->goCheck('detail'); $result = MarketingCustomLogic::detail($params); return $this->data($result); } public function datas(): \think\response\Json { return $this->data(MarketingCustomLogic::datas()); } }