| | |
| | | |
| | | @Api(tags = ["DomainitemController"], description = "值域信息API接口") |
| | | @RestController |
| | | @IgnoreResponseAdvice |
| | | @RequestMapping("/domainitem") |
| | | class DomainitemController (val domainitemService: DomainitemService) { |
| | | |
| | | @IgnoreResponseAdvice |
| | | @GetMapping |
| | | fun getAll() = domainitemService.findAll() |
| | | |
| | | @IgnoreResponseAdvice |
| | | @PutMapping |
| | | fun add(@RequestBody domainitem: Domainitem) = domainitemService.save(domainitem) |
| | | |
| | | @IgnoreResponseAdvice |
| | | @PostMapping |
| | | fun update(@RequestBody domainitem: Domainitem) = domainitemService.update(domainitem) |
| | | |
| | | @IgnoreResponseAdvice |
| | | @GetMapping("/{id}") |
| | | fun getById(@PathVariable id:String) = domainitemService.findOne(id) |
| | | |
| | | @IgnoreResponseAdvice |
| | | @DeleteMapping("/{id}") |
| | | fun delete (@PathVariable id: String) = domainitemService.delete(id) |
| | | |
| | | @IgnoreResponseAdvice |
| | | @ApiOperation("获取某类场景的问题位置选项") |
| | | @GetMapping("/location") |
| | | fun getLocation( |
| | | @ApiParam("场景类型id") @RequestParam("sceneType") sceneType:Int |
| | | ) = domainitemService.getLocation(sceneType) |
| | | |
| | | @IgnoreResponseAdvice |
| | | @ApiOperation("获取巡查任务的类型选项") |
| | | @GetMapping("/taskType") |
| | | fun getTaskType() = domainitemService.getTaskType() |
| | | |
| | | @IgnoreResponseAdvice |
| | | @ApiOperation("获取巡查任务的期限类型选项") |
| | | @GetMapping("/deadlineType") |
| | | fun getDeadlineType() = domainitemService.getDeadlineType() |
| | | |
| | | @IgnoreResponseAdvice |
| | | @ApiOperation("获取巡查任务层次类型选项") |
| | | @GetMapping("/level") |
| | | fun getLevelType() = domainitemService.getLevelType() |
| | | |
| | | @IgnoreResponseAdvice |
| | | @ApiOperation("根据场景类型获取任意拍的类型") |
| | | @GetMapping("/mediaFileType") |
| | | fun getMediaFileType( |
| | | @ApiParam("场景类型id") @RequestParam("sceneType") sceneType:Int |
| | | ) = domainitemService.getMediaFileType(sceneType) |
| | | |
| | | @ApiOperation("根据值域类别名称,获取具体的选项") |
| | | @GetMapping("/name") |
| | | fun getItemByName( |
| | | @ApiParam("值域名称") @RequestParam("name") name:String |
| | | ) = domainitemService.findOneByName(name) |
| | | } |