|
|
@@ -12,6 +12,7 @@ import io.swagger.v3.oas.annotations.tags.Tag;
|
|
|
import org.springframework.web.bind.annotation.*;
|
|
|
|
|
|
import javax.annotation.Resource;
|
|
|
+import javax.validation.Valid;
|
|
|
|
|
|
@RestController
|
|
|
@Tag(name = "线索管理")
|
|
|
@@ -24,13 +25,13 @@ public class BlinkClueController {
|
|
|
|
|
|
@Operation(summary = "新增线索")
|
|
|
@PostMapping("/supports/clue/create")
|
|
|
- public ResponseDTO<String> supportsClueCreate(@RequestBody BlinkClueDTO dto) {
|
|
|
+ public ResponseDTO<String> supportsClueCreate(@RequestBody @Valid BlinkClueDTO dto) {
|
|
|
return clueService.supportsClueCreate(dto);
|
|
|
}
|
|
|
|
|
|
@Operation(summary = "查询线索列表")
|
|
|
- @GetMapping("/supports/clue/queryPage")
|
|
|
- public ResponseDTO<PageResult<BlinkClueDTO>> supportsClueQueryPage(BlinkClueQry qry) {
|
|
|
+ @PostMapping("/supports/clue/queryPage")
|
|
|
+ public ResponseDTO<PageResult<BlinkClueDTO>> supportsClueQueryPage(@RequestBody @Valid BlinkClueQry qry) {
|
|
|
return clueService.supportsClueQueryPage(qry);
|
|
|
}
|
|
|
|