request->params([ ['keyword', ''], ['group_id', ''], ['category_id', ''], ['is_self', ''], ]); return success((new ShopService())->getPage($data)); } /** * 店铺列表 * @return Response */ public function all() { $data = $this->request->params([ ['limit', 0], ]); return success((new ShopService())->getAll($data['limit'])); } /** * 店铺详情 * @param int $id * @return Response */ public function info($id) { return success((new ShopService())->getInfo($id)); } /** * 店铺关注 * @return Response */ public function follow($id, $is_follow) { (new ShopMemberService())->follow($id, $is_follow); return success('SUCCESS'); } }