道路线索应急巡查系统服务后台
feiyu02
2025-04-22 41548e262362faf603a71e066e01bd4ef46619d2
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
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 io.swagger.annotations.Api
import io.swagger.annotations.ApiOperation
import io.swagger.annotations.ApiParam
import org.springframework.web.bind.annotation.*
 
@Api(tags = ["ClueTaskController"], description = "线索任务API接口")
@RestController
@RequestMapping("/clue/task")
class ClueTaskController(val clueTaskService: ClueTaskService) {
 
    @ApiOperation("创建线索巡查任务")
    @PutMapping("/create")
    fun createClueTask(
        @ApiParam("线索任务") @RequestBody clueTask: ClueTask,
    ) = resPack { clueTaskService.createClueTask(clueTask) }
 
    @ApiOperation("更新线索巡查任务")
    @PostMapping("/update")
    fun updateClueTask(
        @ApiParam("线索任务") @RequestBody clueTask: ClueTask,
    ) = resPack { clueTaskService.updateClueTask(clueTask) }
 
    @ApiOperation("获取线索结论")
    @PostMapping("/fetch")
    fun getClueTask(
        @ApiParam("线索任务") @RequestBody clueTask: ClueTask,
    ) = resPack { clueTaskService.getClueTask(clueTask) }
}