83 lines
1.3 KiB
JavaScript
83 lines
1.3 KiB
JavaScript
import request from '@/utils/request'
|
|
|
|
/**
|
|
* 获取消息内,各种未读数量
|
|
*/
|
|
export function userCenterGetUnRead() {
|
|
return request({
|
|
url: '/user/center/get/unRead',
|
|
method: 'get',
|
|
})
|
|
}
|
|
|
|
/**
|
|
删除聊天
|
|
*/
|
|
export function deletedMgs(data) {
|
|
return request({
|
|
url: `/api/front/immsg/deleted/mgs`,
|
|
method: 'post',
|
|
params:data
|
|
})
|
|
}
|
|
/**
|
|
聊天列表
|
|
*/
|
|
export function getChatList(params) {
|
|
return request({
|
|
url: '/api/front/immsg/chatList',
|
|
method: 'get',
|
|
params
|
|
})
|
|
}
|
|
/**
|
|
陌生人聊天列表
|
|
*/
|
|
export function getUnknownChatList(params) {
|
|
return request({
|
|
url: '/api/front/community/user/my/unknown/chatList',
|
|
method: 'get',
|
|
params
|
|
})
|
|
}
|
|
/**
|
|
发送消息
|
|
*/
|
|
export function SendMmsg(data) {
|
|
return request({
|
|
url: `/api/front/immsg/send`,
|
|
method: 'post',
|
|
data
|
|
})
|
|
}
|
|
|
|
/**
|
|
消息列表
|
|
*/
|
|
export function getMsgList(params) {
|
|
return request({
|
|
url: '/api/front/immsg/msgList',
|
|
method: 'get',
|
|
params
|
|
})
|
|
}
|
|
//api/front/user/center/clean/unRead
|
|
/**
|
|
消息列表
|
|
*/
|
|
export function getCleanUnRead() {
|
|
return request({
|
|
url: '/api/front/user/center/clean/unRead',
|
|
method: 'get',
|
|
})
|
|
}
|
|
|
|
/**
|
|
* 撤回消息
|
|
*/
|
|
export function immsgRecall(id) {
|
|
return request({
|
|
url:`/api/front/immsg/recall/${id}`,
|
|
method: 'get',
|
|
})
|
|
} |