From 0c06b7acfba3076f6d5199bb3e053d526ddf6427 Mon Sep 17 00:00:00 2001 From: Renpc-kilig <308442850@qq.com> Date: Thu, 6 Jan 2022 17:23:36 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8E=A5=E5=8F=A3=E6=96=B0=E5=A2=9E=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../resources/dict/DictResourceController.java | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/main/java/com/cm/systemcity/controller/resources/dict/DictResourceController.java b/src/main/java/com/cm/systemcity/controller/resources/dict/DictResourceController.java index df102ce..e4123b6 100644 --- a/src/main/java/com/cm/systemcity/controller/resources/dict/DictResourceController.java +++ b/src/main/java/com/cm/systemcity/controller/resources/dict/DictResourceController.java @@ -8,6 +8,8 @@ import com.cm.common.pojo.dtos.ZTreeDTO; import com.cm.common.result.ErrorResult; import com.cm.common.result.SuccessResult; import com.cm.common.result.SuccessResultList; +import com.cm.systemcity.pojo.dtos.community.CommunityDTO; +import com.cm.systemcity.service.community.ICommunityService; import com.cm.systemcity.service.dict.IDictService; import io.swagger.annotations.*; import org.apache.commons.lang3.StringUtils; @@ -31,6 +33,8 @@ public class DictResourceController extends AbstractController { @Autowired private IDictService dictService; + @Autowired + private ICommunityService communityService; @ApiOperation(value = "zTree字典列表", notes = "zTree字典列表接口") @ApiImplicitParams({ @@ -48,4 +52,12 @@ public class DictResourceController extends AbstractController { return dictService.listZTreeDict(params); } + @ApiOperation(value = "社区列表", notes = "社区列表接口") + @ApiResponses({@ApiResponse(code = 400, message = "请求失败", response = ErrorResult.class)}) + @GetMapping("listcommunity") + public List listCommunity() throws SearchException { + Map params = requestParams(); + return communityService.listCommunity(params); + } + }