mirror of
https://gitee.com/lab1024/smart-admin.git
synced 2025-11-12 21:53:48 +08:00
v3.9.0【优化】typescript版本;【优化】App端消息;【优化】弹出层z-index;
This commit is contained in:
16
smart-admin-web-javascript/src/api/support/message-api.js
Normal file
16
smart-admin-web-javascript/src/api/support/message-api.js
Normal file
@@ -0,0 +1,16 @@
|
||||
import { getRequest, postRequest } from '/@/lib/axios';
|
||||
|
||||
export const messageApi = {
|
||||
// 通知消息-分页查询
|
||||
queryMessage: (param) => {
|
||||
return postRequest('/support/message/queryMyMessage', param);
|
||||
},
|
||||
// 通知消息-查询未读消息数
|
||||
queryUnreadCount: () => {
|
||||
return getRequest('/support/message/getUnreadCount');
|
||||
},
|
||||
// 通知消息-标记已读
|
||||
updateReadFlag: (messageId) => {
|
||||
return getRequest(`/support/message/read/${messageId}`);
|
||||
},
|
||||
};
|
||||
Reference in New Issue
Block a user