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