| | |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.springframework.web.bind.annotation.PostMapping; |
| | | import org.springframework.web.bind.annotation.RequestBody; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | | |
| | | import org.springframework.web.bind.annotation.RestController; |
| | |
| | | |
| | | @PostMapping("/getcountyRegione") |
| | | @ApiOperation(value = "获取县") |
| | | public R<List<SlRegion>> getcountyRegione(RegionQuery regionQuery) { |
| | | public R<List<SlRegion>> getcountyRegione(@RequestBody RegionQuery regionQuery) { |
| | | return R.ok(regionService.getcountyRegione(regionQuery)); |
| | | } |
| | | |
| | | @PostMapping("/gettownRegione") |
| | | @ApiOperation(value = "获取乡") |
| | | public R<List<SlRegion>> gettownRegione(RegionQuery regionQuery) { |
| | | public R<List<SlRegion>> gettownRegione(@RequestBody RegionQuery regionQuery) { |
| | | return R.ok(regionService.gettownRegione(regionQuery)); |
| | | } |
| | | |