This commit is contained in:
liuchengqian 2023-03-07 15:09:36 +08:00
parent e14ca02cb6
commit 16cd04631c
3 changed files with 21 additions and 0 deletions

View File

@ -44,4 +44,12 @@ public class NoticeController {
return noticeService.queryNotice(token); return noticeService.queryNotice(token);
} }
/**
* 已读通知
*/
@PostMapping("/readNotice")
public String readNotice(@RequestHeader(value = "Authorization") String token, @RequestBody Long id) {
return noticeService.readNotice(token, id);
}
} }

View File

@ -27,4 +27,9 @@ public interface NoticeService {
*/ */
String queryNotice(String token); String queryNotice(String token);
/**
* 已读通知
*/
String readNotice(String token, Long id);
} }

View File

@ -169,6 +169,14 @@ public class NoticeServiceImpl implements NoticeService {
return outputEncapsulationObject(PromptMessageEnum.SUCCESS, resultList, locale); return outputEncapsulationObject(PromptMessageEnum.SUCCESS, resultList, locale);
} }
/**
* 已读通知
*/
@Override
public String readNotice(String token, Long id) {
return null;
}
/** /**
* 判断noticeId对应的公告栏通知是否已读 * 判断noticeId对应的公告栏通知是否已读
*/ */