优化
This commit is contained in:
parent
e14ca02cb6
commit
16cd04631c
@ -44,4 +44,12 @@ public class NoticeController {
|
||||
return noticeService.queryNotice(token);
|
||||
}
|
||||
|
||||
/**
|
||||
* 已读通知
|
||||
*/
|
||||
@PostMapping("/readNotice")
|
||||
public String readNotice(@RequestHeader(value = "Authorization") String token, @RequestBody Long id) {
|
||||
return noticeService.readNotice(token, id);
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -27,4 +27,9 @@ public interface NoticeService {
|
||||
*/
|
||||
String queryNotice(String token);
|
||||
|
||||
/**
|
||||
* 已读通知
|
||||
*/
|
||||
String readNotice(String token, Long id);
|
||||
|
||||
}
|
||||
|
@ -169,6 +169,14 @@ public class NoticeServiceImpl implements NoticeService {
|
||||
return outputEncapsulationObject(PromptMessageEnum.SUCCESS, resultList, locale);
|
||||
}
|
||||
|
||||
/**
|
||||
* 已读通知
|
||||
*/
|
||||
@Override
|
||||
public String readNotice(String token, Long id) {
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* 判断noticeId对应的公告栏通知是否已读
|
||||
*/
|
||||
|
Loading…
Reference in New Issue
Block a user