| | |
| | | @Autowired |
| | | private InformationNotificationService informationNotificationService; |
| | | |
| | | @ApiOperation(value = "滚动分页查询") |
| | | @ApiOperation(value = "消息通知-滚动分页查询") |
| | | @GetMapping("page") |
| | | @ValueAuth |
| | | public Result<?> getPage(Long size, Long current, String messageType) { |
| | | return Result.success(informationNotificationService.getPage(new Page<>(current, size), messageType)); |
| | | } |
| | | |
| | | @ApiOperation(value = "更新消息状态(拒绝、接收)") |
| | | @ApiOperation(value = "消息通知-更新消息状态(拒绝、接收)") |
| | | @PutMapping("updateMessageStatus") |
| | | @ValueAuth |
| | | public Result<?> updateMessageStatus(@RequestBody InformationNotification informationNotification) { |
| | |
| | | return Result.success(); |
| | | } |
| | | |
| | | @ApiOperation(value = "标记所有信息为已读/删除所有已读消息") |
| | | @ApiOperation(value = "消息通知-标记所有信息为已读/删除所有已读消息") |
| | | @PutMapping("informationReadOrDelete/{isMarkAllInformationRead}") |
| | | @ValueAuth |
| | | public Result<?> markAllInformationReadOrDeleteAllReadMessages(@PathVariable("isMarkAllInformationRead") Boolean isMarkAllInformationRead) { |
| | |
| | | return Result.success(); |
| | | } |
| | | |
| | | @ApiOperation(value = "根据Id删除数据") |
| | | @ApiOperation(value = "消息通知-删除数据") |
| | | @DeleteMapping("deleteDataBasedOnId") |
| | | @ValueAuth |
| | | public Result<?> deleteDataBasedOnId(Integer id) { |
| | |
| | | return Result.success(); |
| | | } |
| | | |
| | | @ApiOperation(value = "查询是否存在未读数据") |
| | | @ApiOperation(value = "消息通知-查询是否存在未读数据") |
| | | @GetMapping("checkForUnreadData") |
| | | @ValueAuth |
| | | public Result<?> checkForUnreadData() { |
| | | return Result.success(informationNotificationService.checkForUnreadData()); |
| | | } |
| | | |
| | | @ApiOperation(value = "点击详情触发修改状态为已读") |
| | | @ApiOperation(value = "消息通知-点击详情触发修改状态为已读") |
| | | @PutMapping("triggerModificationStatusToRead/{id}") |
| | | @ValueAuth |
| | | public Result<?> triggerModificationStatusToRead(@PathVariable("id") Integer id) { |