riku
2026-01-21 a2c5def7cf9562312a54216bc195a6ea071a26c5
service/notificationservice.js
@@ -24,4 +24,22 @@
    }
    $f.get(fun1)
  },
  // 更新通知阅读状态
  updateReadState(userId, data, fun) {
    let cb = {
      url: `/notifications/${userId}/readState`,
      data: data,
    };
    Object.assign(cb, fun);
    $f.post(cb);
  },
  getUnReadNoticeCount(userId, fun) {
    let cb = {
      url: `/notifications/${userId}/unread`,
    }
    Object.assign(cb, fun)
    $f.get(cb)
  }
}