| | |
| | | package cn.flightfeather.supervision.lightshare.web |
| | | |
| | | import cn.flightfeather.supervision.config.IgnoreResponseAdvice |
| | | import cn.flightfeather.supervision.domain.ds1.entity.Town |
| | | import cn.flightfeather.supervision.lightshare.service.TownService |
| | | import io.swagger.annotations.Api |
| | |
| | | |
| | | @Api(tags = ["TownController"], description = "街镇API接口") |
| | | @RestController |
| | | @IgnoreResponseAdvice |
| | | @RequestMapping("/town") |
| | | class TownController(val townService: TownService){ |
| | | @GetMapping |
| | |
| | | |
| | | @DeleteMapping("/{id}") |
| | | fun delete (@PathVariable id: String) = townService.delete(id) |
| | | |
| | | @GetMapping("/district") |
| | | fun getByDistrict( |
| | | @RequestParam("districtCode") districtCode: String, |
| | | ) = townService.getByDistrict(districtCode) |
| | | } |