@@ -209,4 +209,23 @@ public class TaskController implements TaskControllerApi {
|
||||
));
|
||||
}
|
||||
|
||||
@Override
|
||||
@PostMapping("/auditInfo/{ids}")
|
||||
public ResponseResult updateAuditInfo(@PathVariable List<Integer> ids,
|
||||
@RequestBody Map<String, String> auditInfo) {
|
||||
if (auditInfo.get("auditInfo") == null || auditInfo.get("auditInfo").isEmpty()) {
|
||||
throw new IllegalArgumentException("auditInfo is empty");
|
||||
}
|
||||
return ResponseResult.ok()
|
||||
.setData("success", taskService.updateAuditInfo(ids, auditInfo.get("auditInfo")));
|
||||
}
|
||||
|
||||
@Override
|
||||
@GetMapping("/auditInfo/{id}")
|
||||
public ResponseResult queryAuditInfo(@PathVariable Integer id) {
|
||||
return ResponseResult.ok()
|
||||
.setData("auditInfo", taskService.queryAuditInfo(id));
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user