From 42521c9b51c1bd9a40036f18fd610cd46601222d Mon Sep 17 00:00:00 2001 From: yanghui <2536613402@qq.com> Date: 星期一, 28 十一月 2022 14:45:22 +0800 Subject: [PATCH] #feat . --- springcloud_k8s_panzhihuazhihuishequ/applets/src/main/java/com/panzhihua/applets/api/CommunitySwitchApi.java | 7 ++++--- 1 files changed, 4 insertions(+), 3 deletions(-) diff --git a/springcloud_k8s_panzhihuazhihuishequ/applets/src/main/java/com/panzhihua/applets/api/CommunitySwitchApi.java b/springcloud_k8s_panzhihuazhihuishequ/applets/src/main/java/com/panzhihua/applets/api/CommunitySwitchApi.java index 47aa3b2..2e8ffc4 100644 --- a/springcloud_k8s_panzhihuazhihuishequ/applets/src/main/java/com/panzhihua/applets/api/CommunitySwitchApi.java +++ b/springcloud_k8s_panzhihuazhihuishequ/applets/src/main/java/com/panzhihua/applets/api/CommunitySwitchApi.java @@ -2,6 +2,7 @@ import javax.annotation.Resource; +import com.panzhihua.common.controller.BaseController; import org.springframework.web.bind.annotation.*; import com.panzhihua.common.model.dtos.community.switchs.SearchCommunityDTO; @@ -18,7 +19,7 @@ @RestController @RequestMapping("/switch/") @Api(tags = {"切换社区模块"}) -public class CommunitySwitchApi { +public class CommunitySwitchApi extends BaseController { @Resource private CommunityService communityService; @@ -26,13 +27,13 @@ @ApiOperation(value = "查询所有社区", response = StreetAllAppletsVO.class) @GetMapping("/list/noToken") public R list() { - return communityService.communitySwitchList(); + return communityService.communitySwitchList(this.getAppId()); } @ApiOperation(value = "根据名字搜索社区", response = CommunitySwitchAllAppletsVO.class) @GetMapping("/search/noToken") public R search(@RequestParam(value = "name") String name) { - return communityService.communitySwitchSearchList(name); + return communityService.communitySwitchSearchList(name,this.getAppId()); } @ApiOperation(value = "根据距离搜索社区", response = CommunitySwitchAllAppletsVO.class) -- Gitblit v1.7.1