Merge branch 'master' of e.coding.net:tsteam/urban-governance/system-city

This commit is contained in:
wans 2022-04-20 15:09:13 +08:00
commit ecef068c91

View File

@ -8,6 +8,8 @@ import com.cm.common.pojo.dtos.ZTreeDTO;
import com.cm.common.result.ErrorResult; import com.cm.common.result.ErrorResult;
import com.cm.common.result.SuccessResult; import com.cm.common.result.SuccessResult;
import com.cm.common.result.SuccessResultList; 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 com.cm.systemcity.service.dict.IDictService;
import io.swagger.annotations.*; import io.swagger.annotations.*;
import org.apache.commons.lang3.StringUtils; import org.apache.commons.lang3.StringUtils;
@ -31,6 +33,8 @@ public class DictResourceController extends AbstractController {
@Autowired @Autowired
private IDictService dictService; private IDictService dictService;
@Autowired
private ICommunityService communityService;
@ApiOperation(value = "zTree字典列表", notes = "zTree字典列表接口") @ApiOperation(value = "zTree字典列表", notes = "zTree字典列表接口")
@ApiImplicitParams({ @ApiImplicitParams({
@ -48,4 +52,12 @@ public class DictResourceController extends AbstractController {
return dictService.listZTreeDict(params); return dictService.listZTreeDict(params);
} }
@ApiOperation(value = "社区列表", notes = "社区列表接口")
@ApiResponses({@ApiResponse(code = 400, message = "请求失败", response = ErrorResult.class)})
@GetMapping("listcommunity")
public List<CommunityDTO> listCommunity() throws SearchException {
Map<String, Object> params = requestParams();
return communityService.listCommunity(params);
}
} }