You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
503 B
28 lines
503 B
3 years ago
|
import api from '@/utils/api'
|
||
|
|
||
|
/**
|
||
|
* 根据消息通知主键获取消息信息
|
||
|
* @param messageId 消息通知主键
|
||
|
*/
|
||
|
export function findMessageById(messageId) {
|
||
|
return api({
|
||
|
url: '/message/getById',
|
||
|
method: 'get',
|
||
|
params: { messageId }
|
||
|
})
|
||
|
}
|
||
|
|
||
|
/**
|
||
|
* 消息设置已读
|
||
|
*/
|
||
|
export function settingReadMessage(userId, messageId) {
|
||
|
return api({
|
||
|
url: '/message/settingReadMessage',
|
||
|
method: 'post',
|
||
|
data: {
|
||
|
userId: userId,
|
||
|
messageId: messageId
|
||
|
}
|
||
|
})
|
||
|
}
|