From 66cb8a977eee27587858d724b23b3c6fceb7b0c6 Mon Sep 17 00:00:00 2001
From: lidongdong <1459917685@qq.com>
Date: 星期一, 16 十月 2023 11:21:30 +0800
Subject: [PATCH] 办事指南微信小程序列表接口修改
---
springcloud_k8s_panzhihuazhihuishequ/applets/src/main/java/com/panzhihua/applets/api/CommunitySwitchApi.java | 28 +++++++++++++++-------------
1 files changed, 15 insertions(+), 13 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 83a470c..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
@@ -1,43 +1,45 @@
package com.panzhihua.applets.api;
+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;
import com.panzhihua.common.model.vos.R;
import com.panzhihua.common.model.vos.community.switchs.CommunitySwitchAllAppletsVO;
import com.panzhihua.common.model.vos.community.switchs.StreetAllAppletsVO;
import com.panzhihua.common.service.community.CommunityService;
+
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
-import org.springframework.web.bind.annotation.*;
-
-import javax.annotation.Resource;
@Slf4j
@RestController
@RequestMapping("/switch/")
@Api(tags = {"切换社区模块"})
-public class CommunitySwitchApi {
+public class CommunitySwitchApi extends BaseController {
@Resource
private CommunityService communityService;
- @ApiOperation(value = "查询所有社区",response = StreetAllAppletsVO.class )
+ @ApiOperation(value = "查询所有社区", response = StreetAllAppletsVO.class)
@GetMapping("/list/noToken")
- public R list(){
- return communityService.communitySwitchList();
+ public R list() {
+ return communityService.communitySwitchList(this.getAppId());
}
- @ApiOperation(value = "根据名字搜索社区",response = CommunitySwitchAllAppletsVO.class )
+ @ApiOperation(value = "根据名字搜索社区", response = CommunitySwitchAllAppletsVO.class)
@GetMapping("/search/noToken")
- public R search(@RequestParam(value = "name") String name){
- return communityService.communitySwitchSearchList(name);
+ public R search(@RequestParam(value = "name") String name) {
+ return communityService.communitySwitchSearchList(name,this.getAppId());
}
- @ApiOperation(value = "根据距离搜索社区",response = CommunitySwitchAllAppletsVO.class )
+ @ApiOperation(value = "根据距离搜索社区", response = CommunitySwitchAllAppletsVO.class)
@PostMapping("/distance/noToken")
- public R searchDistance(@RequestBody SearchCommunityDTO communityDTO){
+ public R searchDistance(@RequestBody SearchCommunityDTO communityDTO) {
return communityService.communitySwitchSearchDistanceList(communityDTO);
}
-
}
--
Gitblit v1.7.1