|
|
@@ -5,6 +5,40 @@ import {
|
|
|
postJ
|
|
|
} from "@/utils/request";
|
|
|
import Vue from "vue";
|
|
|
+
|
|
|
+
|
|
|
+//获取我的消息列表
|
|
|
+export async function notifyMessagePageAPI(params, loding = true) {
|
|
|
+ const res = await postJ(
|
|
|
+ Vue.prototype.apiUrl + `/sys/notifymessage/page`, params, loding
|
|
|
+ );
|
|
|
+ if (res.code == 0) {
|
|
|
+ return res.data;
|
|
|
+ }
|
|
|
+ return Promise.reject(new Error(res.message));
|
|
|
+}
|
|
|
+
|
|
|
+//更新已读-指定消息ID
|
|
|
+export async function updateNotifyMessageReadByIdAPI(params, loding = true) {
|
|
|
+ const res = await postJ(
|
|
|
+ Vue.prototype.apiUrl + `/sys/notifymessage/updateNotifyMessageRead`, params, loding
|
|
|
+ );
|
|
|
+ if (res.code == 0) {
|
|
|
+ return res.data;
|
|
|
+ }
|
|
|
+ return Promise.reject(new Error(res.message));
|
|
|
+}
|
|
|
+//获取某用户的未读消息条数
|
|
|
+export async function getUnreadNotifyMessageCountAPI() {
|
|
|
+ const res = await get(
|
|
|
+ Vue.prototype.apiUrl + `/sys/notifymessage/getUnreadNotifyMessageCount`, '', false
|
|
|
+ );
|
|
|
+ if (res.code == 0) {
|
|
|
+ return res.data;
|
|
|
+ }
|
|
|
+ return Promise.reject(new Error(res.message));
|
|
|
+}
|
|
|
+
|
|
|
//获取待办事项列表
|
|
|
export async function getTodoTaskPage(query, loding = true) {
|
|
|
const res = await get(
|