| | |
| | | }) |
| | | @GetMapping(path = "allLevel") |
| | | public BaseResponse<List<DistrictLevel>> allDistrictLevels(){ |
| | | List<DistrictLevel> list = Arrays.asList(DistrictLevel.City, DistrictLevel.County, DistrictLevel.Town, DistrictLevel.Village, DistrictLevel.Group) ; |
| | | List<DistrictLevel> list = Arrays.asList(DistrictLevel.City, DistrictLevel.County, DistrictLevel.Town, DistrictLevel.Village) ; |
| | | return BaseResponseUtils.buildSuccess(list); |
| | | } |
| | | |
| | |
| | | ) |
| | | }) |
| | | @GetMapping(path = "all") |
| | | @SsoAop("-1") |
| | | public BaseResponse<List<BaDistrict>> all(){ |
| | | List<BaDistrict> list = this.sv.selectAllByLevel(DistrictLevel.City.code) ; |
| | | return BaseResponseUtils.buildSuccess(list); |
| | |
| | | ) |
| | | }) |
| | | @GetMapping(path = "one") |
| | | @SsoAop("-1") |
| | | public BaseResponse<BaDistrict> one(@Parameter(description = "实体id", required = true) Long id){ |
| | | return BaseResponseUtils.buildSuccess(this.sv.selectById(id)); |
| | | } |