| | |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * <p> |
| | | * 运维人员消息通知表 前端控制器 |
| | |
| | | notificationService.lambdaUpdate().set(XpOperationsUserNotification::getReadStatus, 1).eq(XpOperationsUserNotification::getId, notificationId).update(); |
| | | return R.ok(); |
| | | } |
| | | |
| | | @PostMapping(value = "/inner/v1/notification/addBatch") |
| | | @ApiOperation(value = "批量添加通知", tags = {"内部接口"}) |
| | | public R<?> addNotificationBatch(@RequestBody List<XpOperationsUserNotification> notifications) { |
| | | notificationService.addNotificationBatch(notifications); |
| | | return R.ok(); |
| | | } |
| | | } |