道路线索应急巡查系统服务后台
feiyu02
2025-04-25 79bd8ea222cc3518ec91dce3dfb30fcf387cf96d
src/main/kotlin/com/flightfeather/grid/web/ClueTaskController.kt
@@ -1,8 +1,8 @@
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
@@ -12,6 +12,12 @@
@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")
@@ -25,9 +31,15 @@
        @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) }
}