| | |
| | | return toAjax(noticeService.readAll()); |
| | | } |
| | | |
| | | /** |
| | | * 清除当前登录用户的全部消息 |
| | | */ |
| | | @DeleteMapping("/clearAll") |
| | | public R clearAll() { |
| | | return R.ok(noticeService.clearAll()); |
| | | } |
| | | |
| | | @PostMapping("appReadNotice") |
| | | @Operation(summary = "移动端根据消息ID进行已读") |
| | | public AjaxResult appReadNotice(@RequestParam("noticeId") Long noticeId) { |
| | |
| | | int readAll();
|
| | |
|
| | | /**
|
| | | * 清除当前登录用户的全部消息
|
| | | *
|
| | | * @return 结果
|
| | | */
|
| | | int clearAll();
|
| | |
|
| | | /**
|
| | | * 通过指定人发送提醒
|
| | | * @param title 标题
|
| | | * @param message 消息
|
| | |
| | | }
|
| | |
|
| | | @Override
|
| | | public int clearAll() {
|
| | | Long userId = SecurityUtils.getUserId();
|
| | | if (userId == null) {
|
| | | return 0;
|
| | | }
|
| | | return noticeMapper.delete(Wrappers.<SysNotice>lambdaQuery()
|
| | | .eq(SysNotice::getConsigneeId, userId));
|
| | | }
|
| | |
|
| | | @Override
|
| | | public void simpleNoticeByUser(String title, String message, List<Long> consigneeId, String jumpPath) {
|
| | | Long userId = SecurityUtils.getLoginUser().getUserId();
|
| | | Long tenantId = SecurityUtils.getLoginUser().getTenantId();
|