@RestController @RequestMapping(value="/config/district") public class DistrictController extends Object
| Constructor and Description |
|---|
DistrictController() |
| Modifier and Type | Method and Description |
|---|---|
com.geoway.adf.dms.common.web.Response<Long> |
addDistrict(DistrictCreateDTO createDTO) |
com.geoway.adf.dms.common.web.Response |
addDistrictLevel(DistrictLevelCreateDTO createDTO) |
com.geoway.adf.dms.common.web.Response |
deleteDistrict(Long id) |
com.geoway.adf.dms.common.web.Response |
deleteDistrictItem(Long districtId,
Long id) |
com.geoway.adf.dms.common.web.Response |
deleteDistrictLevel(Long districtId,
Short index) |
com.geoway.adf.dms.common.web.Response<DistrictItemDTO> |
getDefaultDistrictItem(Long districtId) |
com.geoway.adf.dms.common.web.Response<List<DistrictItemDTO>> |
getDistrictItem(Long districtId,
Long pid,
String pCode,
Boolean withChildren,
String keyword,
Integer searchCount) |
com.geoway.adf.dms.common.web.Response<DistrictItemDTO> |
getDistrictItemDetail(Long districtId,
Integer level,
String code,
Boolean withChildren) |
com.geoway.adf.dms.common.web.Response<DistrictItemDTO> |
getDistrictItemDetail(Long id,
Long districtId,
Boolean withChildren) |
com.geoway.adf.dms.common.web.Response<String> |
getDistrictItemExtent(Long id) |
com.geoway.adf.dms.common.web.Response<Map<String,List<DistrictItemDTO>>> |
getDistrictItemsGroup(Long districtId,
Long pid,
Boolean withChildren,
String keyword) |
com.geoway.adf.dms.common.web.Response<DistrictLevelDTO> |
getDistrictLevelDetail(Long districtId,
Short index) |
com.geoway.adf.dms.common.web.Response<List<DistrictLevelDTO>> |
getDistrictLevels(Long districtId) |
com.geoway.adf.dms.common.web.Response |
importDistrictItems(DistrictItemImportDTO importDTO) |
com.geoway.adf.dms.common.web.Response<List<DmDistrictDTO>> |
list() |
com.geoway.adf.dms.common.web.Response<List<DistrictItemDTO>> |
queryDistrictItem(Long districtId,
Short level,
String geometry) |
com.geoway.adf.dms.common.web.Response |
setDefaultDistrict(Long id,
Boolean isDefault) |
com.geoway.adf.dms.common.web.Response<List<DistrictTreeDTO>> |
tree() |
com.geoway.adf.dms.common.web.Response |
updateDistrict(DistrictEditDTO editDTO) |
com.geoway.adf.dms.common.web.Response |
updateDistrictItem(DistrictItemEditDTO editDTO) |
com.geoway.adf.dms.common.web.Response |
updateDistrictLevel(DistrictLevelEditDTO editDTO) |
com.geoway.adf.dms.common.web.Response |
updateDistrictLevel(Long districtId,
Long id) |
@GetMapping(value="/list") public com.geoway.adf.dms.common.web.Response<List<DmDistrictDTO>> list()
@GetMapping(value="/dic/level/tree") public com.geoway.adf.dms.common.web.Response<List<DistrictTreeDTO>> tree()
@GetMapping(value="/level/list") public com.geoway.adf.dms.common.web.Response<List<DistrictLevelDTO>> getDistrictLevels(@RequestParam Long districtId)
@GetMapping(value="/tree") public com.geoway.adf.dms.common.web.Response<List<DistrictItemDTO>> getDistrictItem(@RequestParam Long districtId, @RequestParam(required=false) Long pid, @RequestParam(required=false) String pCode, @RequestParam(required=false,defaultValue="false") Boolean withChildren, @RequestParam(required=false) String keyword, @RequestParam(required=false) Integer searchCount)
@GetMapping(value="/tree/group") public com.geoway.adf.dms.common.web.Response<Map<String,List<DistrictItemDTO>>> getDistrictItemsGroup(@RequestParam Long districtId, @RequestParam(required=false,defaultValue="-1") Long pid, @RequestParam(required=false,defaultValue="false") Boolean withChildren, @RequestParam(required=false) String keyword)
@PostMapping(value="") public com.geoway.adf.dms.common.web.Response<Long> addDistrict(@RequestBody DistrictCreateDTO createDTO)
@PutMapping(value="")
public com.geoway.adf.dms.common.web.Response updateDistrict(@RequestBody
DistrictEditDTO editDTO)
@DeleteMapping(value="/{id}")
public com.geoway.adf.dms.common.web.Response deleteDistrict(@PathVariable
Long id)
@PutMapping(value="/default")
public com.geoway.adf.dms.common.web.Response setDefaultDistrict(@RequestParam
Long id,
@RequestParam
Boolean isDefault)
@GetMapping(value="/level") public com.geoway.adf.dms.common.web.Response<DistrictLevelDTO> getDistrictLevelDetail(@RequestParam Long districtId, @RequestParam Short index)
@PostMapping(value="/level")
public com.geoway.adf.dms.common.web.Response addDistrictLevel(@RequestBody
DistrictLevelCreateDTO createDTO)
@PutMapping(value="/level")
public com.geoway.adf.dms.common.web.Response updateDistrictLevel(@RequestBody
DistrictLevelEditDTO editDTO)
@DeleteMapping(value="/level")
public com.geoway.adf.dms.common.web.Response deleteDistrictLevel(@RequestParam
Long districtId,
@RequestParam
Short index)
@PostMapping(value="/item/import")
public com.geoway.adf.dms.common.web.Response importDistrictItems(@RequestBody
DistrictItemImportDTO importDTO)
@GetMapping(value="/item") public com.geoway.adf.dms.common.web.Response<DistrictItemDTO> getDistrictItemDetail(@RequestParam Long id, @RequestParam(required=false) Long districtId, @RequestParam(required=false) Boolean withChildren)
@GetMapping(value="/itemByCode") public com.geoway.adf.dms.common.web.Response<DistrictItemDTO> getDistrictItemDetail(@RequestParam(required=false) Long districtId, @RequestParam(required=false) Integer level, @RequestParam String code, @RequestParam(required=false) Boolean withChildren)
@PostMapping(value="/item")
public com.geoway.adf.dms.common.web.Response updateDistrictItem(@RequestBody
DistrictItemEditDTO editDTO)
@DeleteMapping(value="/item")
public com.geoway.adf.dms.common.web.Response deleteDistrictItem(@RequestParam
Long districtId,
@RequestParam
Long id)
@GetMapping(value="/item/region") public com.geoway.adf.dms.common.web.Response<String> getDistrictItemExtent(@RequestParam Long id)
@PutMapping(value="/item/default")
public com.geoway.adf.dms.common.web.Response updateDistrictLevel(@RequestParam
Long districtId,
@RequestParam(required=false)
Long id)
@GetMapping(value="/item/default") public com.geoway.adf.dms.common.web.Response<DistrictItemDTO> getDefaultDistrictItem(@RequestParam(required=false) Long districtId)
@GetMapping(value="/item/query") public com.geoway.adf.dms.common.web.Response<List<DistrictItemDTO>> queryDistrictItem(@RequestParam(required=false) Long districtId, @RequestParam Short level, @RequestParam String geometry)
Copyright © 2025. All rights reserved.