| | |
| | | package com.flightfeather.grid.web |
| | | |
| | | import com.flightfeather.grid.domain.ds1.entity.ClueConclusion |
| | | import com.flightfeather.grid.domain.ds1.entity.ClueTask |
| | | import com.flightfeather.grid.service.ClueTaskService |
| | | import com.flightfeather.grid.vo.ClueInternalTaskVo |
| | | import io.swagger.annotations.Api |
| | | import io.swagger.annotations.ApiOperation |
| | | import io.swagger.annotations.ApiParam |
| | |
| | | @RestController |
| | | @RequestMapping("/clue/task") |
| | | class ClueTaskController(val clueTaskService: ClueTaskService) { |
| | | |
| | | @ApiOperation("创建内部线索巡查任务") |
| | | @PutMapping("/create/internal") |
| | | fun createInternalClueTask( |
| | | @ApiParam("线索任务") @RequestBody clueInternalTaskVo: ClueInternalTaskVo, |
| | | ) = resPack { clueTaskService.createInternalClueTask(clueInternalTaskVo) } |
| | | |
| | | @ApiOperation("创建线索巡查任务") |
| | | @PutMapping("/create") |
| | |
| | | @ApiParam("线索任务") @RequestBody clueTask: ClueTask, |
| | | ) = resPack { clueTaskService.updateClueTask(clueTask) } |
| | | |
| | | @ApiOperation("获取线索结论") |
| | | @ApiOperation("查询线索任务") |
| | | @PostMapping("/fetch") |
| | | fun getClueTask( |
| | | @ApiParam("线索任务") @RequestBody clueTask: ClueTask, |
| | | ) = resPack { clueTaskService.getClueTask(clueTask) } |
| | | |
| | | @ApiOperation("删除线索任务") |
| | | @DeleteMapping("/delete") |
| | | fun deleteClueTask( |
| | | @ApiParam("线索任务") @RequestBody clueTask: ClueTask, |
| | | ) = resPack { clueTaskService.deleteClueTask(clueTask) } |
| | | } |