dataLists(); } /** * @notes 店铺详情 * @return \think\response\Json * @author cjhao * @date 2024/10/12 00:26 */ public function detail() { $params = $this->request->get(); $params['coach_id'] = $this->coachId; $detail = (new ShopLogic())->detail($params); return $this->success('',$detail); } /** * @notes 申请 * @return \think\response\Json * @author cjhao * @date 2024/10/14 11:51 */ public function applyJoin() { $params = $this->request->post(); $params['coach_id'] = $this->coachId; $result = (new ShopLogic())->applyJoin($params); if(true === $result){ return $this->success('申请成功,请等待门店审核',[],1,1); } return $this->fail(ShopLogic::getError()); } /** * @notes 申请列表 * @return \think\response\Json * @author cjhao * @date 2024/10/20 03:44 */ public function applyDetail() { $params = $this->request->get(); $params['coach_id'] = $this->coachId; $result = (new ShopLogic())->applyDetail($params); return $this->success('',$result); } /** * @notes 取消申请 * @return \think\response\Json * @author cjhao * @date 2024/10/20 23:03 */ public function cancel() { $params = $this->request->post(); $params['coach_id'] = $this->coachId; $result = (new ShopLogic())->cancel($params); if(true === $result){ return $this->success('取消成功'); } return $this->fail($result); } /** * @notes 申请 * @return \think\response\Json * @author cjhao * @date 2024/10/14 11:51 */ public function applyQuit() { // $params = $this->request->post(); // $params['coach_id'] = $this->coachId; $result = (new ShopLogic())->applyQuit($this->coachId); if(true === $result){ return $this->success('申请成功,请等待门店审核'); } return $this->fail(ShopLogic::getError()); } }