| | |
| | | import com.flightfeather.grid.domain.ds1.entity.ClueTask |
| | | import com.flightfeather.grid.service.ClueTaskService |
| | | import com.flightfeather.grid.vo.ClueInternalTaskVo |
| | | import com.flightfeather.grid.vo.ClueTaskOptions |
| | | import io.swagger.annotations.Api |
| | | import io.swagger.annotations.ApiOperation |
| | | import io.swagger.annotations.ApiParam |
| | |
| | | @ApiParam("线索任务") @RequestBody clueTask: ClueTask, |
| | | ) = resPack { clueTaskService.getClueTask(clueTask) } |
| | | |
| | | @ApiOperation("查询线索任务") |
| | | @PostMapping("/search") |
| | | fun searchClueTask( |
| | | @RequestParam("page", required = false) page: Int?, |
| | | @RequestParam("per_page", required = false) perPage: Int?, |
| | | @ApiParam("线索任务查询条件") @RequestBody clueTaskOptions: ClueTaskOptions, |
| | | ) = resPack { clueTaskService.searchClueTask(clueTaskOptions, page, perPage) } |
| | | |
| | | @ApiOperation("删除线索任务") |
| | | @DeleteMapping("/delete") |
| | | fun deleteClueTask( |
| | | @ApiParam("线索任务") @RequestBody clueTask: ClueTask, |
| | | ) = resPack { clueTaskService.deleteClueTask(clueTask) } |
| | | |
| | | @ApiOperation("查询线索任务完成情况统计") |
| | | @PostMapping("/summary") |
| | | fun getClueTaskSummary( |
| | | @ApiParam("线索任务查询条件") @RequestBody clueTaskOptions: ClueTaskOptions, |
| | | ) = resPack { clueTaskService.getClueTaskSummary(clueTaskOptions) } |
| | | |
| | | @ApiOperation("完成线索任务") |
| | | @PostMapping("/finish") |
| | | fun finishClueTask( |
| | | @ApiParam("线索任务id") @RequestParam clueTaskId: String, |
| | | ) = resPack { clueTaskService.finishClueTask(clueTaskId) } |
| | | } |