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.
|
|
|
import api from '@/utils/api'
|
|
|
|
|
|
|
|
/**
|
|
|
|
* 根据消息通知主键获取消息信息
|
|
|
|
* @param messageId 消息通知主键
|
|
|
|
*/
|
|
|
|
export function findMessageById(messageId) {
|
|
|
|
return api({
|
|
|
|
url: '/message',
|
|
|
|
method: 'get',
|
|
|
|
params: { messageId }
|
|
|
|
})
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* 消息设置已读
|
|
|
|
*/
|
|
|
|
export function settingReadMessage(userId, messageId) {
|
|
|
|
return api({
|
|
|
|
url: '/message/settingReadMessage',
|
|
|
|
method: 'post',
|
|
|
|
data: {
|
|
|
|
userId: userId,
|
|
|
|
messageId: messageId
|
|
|
|
}
|
|
|
|
})
|
|
|
|
}
|