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) } }