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); + } + }