Merge branch 'master' of e.coding.net:tsteam/urban-governance/system-city
This commit is contained in:
commit
ecef068c91
@ -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<CommunityDTO> listCommunity() throws SearchException {
|
||||
Map<String, Object> params = requestParams();
|
||||
return communityService.listCommunity(params);
|
||||
}
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user