From 84569abda51ecf6c5549dec4cadee8d043422379 Mon Sep 17 00:00:00 2001 From: feiyu02 <risaku@163.com> Date: 星期二, 30 九月 2025 09:33:28 +0800 Subject: [PATCH] 2025.9.30 --- src/main/kotlin/com/flightfeather/grid/web/ClueTaskController.kt | 21 +++++++++++++++++++++ 1 files changed, 21 insertions(+), 0 deletions(-) diff --git a/src/main/kotlin/com/flightfeather/grid/web/ClueTaskController.kt b/src/main/kotlin/com/flightfeather/grid/web/ClueTaskController.kt index c6e1dab..322079e 100644 --- a/src/main/kotlin/com/flightfeather/grid/web/ClueTaskController.kt +++ b/src/main/kotlin/com/flightfeather/grid/web/ClueTaskController.kt @@ -3,6 +3,7 @@ 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 @@ -37,9 +38,29 @@ @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) } } \ No newline at end of file -- Gitblit v1.9.3