Mr.qian 2 tuần trước cách đây
mục cha
commit
01218260c9

+ 2 - 2
mall-service/src/main/java/com/txz/mall/controller/appcontroller/AppNoticeController.java

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