| | |
| | | package cn.flightfeather.supervision.lightshare.web |
| | | |
| | | import cn.flightfeather.supervision.config.IgnoreResponseAdvice |
| | | import cn.flightfeather.supervision.domain.ds1.entity.Domaincatalog |
| | | import cn.flightfeather.supervision.lightshare.service.DomaincatalogService |
| | | import io.swagger.annotations.Api |
| | |
| | | |
| | | @Api(tags = ["DomaincatalogController"], description = "值域目录API接口") |
| | | @RestController |
| | | @IgnoreResponseAdvice |
| | | @RequestMapping("/domaincatalog") |
| | | class DomaincatalogController(val domaincatalogService: DomaincatalogService) { |
| | | |
| | |
| | | fun getAll() = domaincatalogService.findAll() |
| | | |
| | | @PutMapping |
| | | fun add(@RequestBody domaincatalog: Domaincatalog):Int { |
| | | return domaincatalogService.save(domaincatalog) |
| | | } |
| | | fun add(@RequestBody domaincatalog: Domaincatalog) = domaincatalogService.save(domaincatalog) |
| | | |
| | | @PostMapping |
| | | fun update(@RequestBody domaincatalog: Domaincatalog) = domaincatalogService.update(domaincatalog) |