1
0
mirror of https://github.com/FatttSnake/Pinnacle-OA.git synced 2026-04-05 23:11:24 +08:00

AlRead and ToRead function have been compeled,another add rightClick menu

This commit is contained in:
cccccyb
2023-05-19 03:14:32 +08:00
parent f7c9e71fe3
commit d1c3389efa
20 changed files with 358 additions and 250 deletions

View File

@@ -66,6 +66,19 @@ public class NoticeController {
return ResponseResult.build(code, msg, noticesByUserId);
}
//修改登录用户所接收公告的阅读状态
@GetMapping("/modifyNoticeIsRead")
public ResponseResult modifyNoticeIsRead(String noticeId,Integer readStatus){
Long nid=null;
if (StringUtils.hasText(noticeId)){
nid = Long.parseLong(noticeId);
}
boolean updateById = noticeReceiveService.modifyNoticeIsRead(nid,readStatus);
String msg = updateById ? "" : "服务器出错,请重试!";
return ResponseResult.build(updateById ? ResponseCode.DATABASE_UPDATE_OK : ResponseCode.DATABASE_UPDATE_ERROR, msg, updateById);
}
//更新公告
@PutMapping
public ResponseResult updateNotice(@RequestBody Notice notice) {