|
|
|
@ -54,13 +54,13 @@ public class WarningController extends BasicController {
|
|
|
|
|
.doWrite(result);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@PostMapping("updateRead")
|
|
|
|
|
@ApiOperation("修改是否已读状态")
|
|
|
|
|
public Response<String> updateRead(@Validated @RequestBody Warning warning) throws Exception {
|
|
|
|
|
@PostMapping("updateState")
|
|
|
|
|
@ApiOperation("修改处理状态")
|
|
|
|
|
public Response<String> updateState(@Validated @RequestBody Warning warning) throws Exception {
|
|
|
|
|
if (warning.getId() == null) {
|
|
|
|
|
throw new BusinessException("id不能为空!");
|
|
|
|
|
}
|
|
|
|
|
service.updateRead(warning);
|
|
|
|
|
service.updateState(warning);
|
|
|
|
|
return Response.success("OK");
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|