|
@@ -69,7 +69,7 @@ public class AppNoticeController {
|
|
|
/**
|
|
|
* 已读
|
|
|
*/
|
|
|
- @PatchMapping("read/{id:^\\d+$}")
|
|
|
+ @PutMapping("read/{id:^\\d+$}")
|
|
|
public Result read(@PathVariable("id") Long id) {
|
|
|
Notice readInfo = noticeService.getOne(Wrappers.<Notice>lambdaQuery()
|
|
|
.eq(Notice::getId, id)
|
|
@@ -87,7 +87,7 @@ public class AppNoticeController {
|
|
|
/**
|
|
|
* 一键已读
|
|
|
*/
|
|
|
- @PatchMapping("readAll")
|
|
|
+ @PutMapping("readAll")
|
|
|
public Result readAll(NoticeGroupEnum type) {
|
|
|
LambdaUpdateWrapper<Notice> updateWrapper = Wrappers.<Notice>lambdaUpdate()
|
|
|
.eq(Notice::getUid, AuthService.getTokenUserId(null))
|