消息中心

This commit is contained in:
gong
2025-12-10 15:33:57 +08:00
parent 1447960908
commit 385a741d77
11 changed files with 377 additions and 11 deletions

View File

@@ -0,0 +1,30 @@
// 引入 request 文件
import request from '@/common/api/request.js'
import {
prveUrl
} from './config.js'
// 获取未读消息数量
export const getUnReadCountReq = () => {
return request({
url: prveUrl + '/user/msg/unReadCount',
method: 'get',
})
}
// 获取消息列表分页数据
export const getUserMsgPageReq = (data) => {
return request({
url: prveUrl + '/user/msg/page',
method: 'get',
data: data
})
}
// 根据订单 Id 查询入账消息
export const getMsgByOrderIdReq = (id) => {
return request({
url: prveUrl + '/user/msg/order/' + id,
method: 'get',
})
}