feat:bug修改
This commit is contained in:
1 parent
b984cfed05
commit
feec151583
53 files changed
+594
-341
No files matched your search
@@ -0,0 +1,50 @@
|
||||
import request from '@/config/axios'
|
||||
|
||||
// 查询用户详情
|
||||
export const self = async (params: any) => {
|
||||
return await request.get({
|
||||
url: '/user/self',
|
||||
params
|
||||
})
|
||||
}
|
||||
|
||||
// 判断用户哪个终端在线
|
||||
export const terminalOnline = async (params: any) => {
|
||||
return await request.get({
|
||||
url: '/user/terminal/online',
|
||||
params
|
||||
})
|
||||
}
|
||||
|
||||
// 朋友列表
|
||||
export const friendList = async (params: any) => {
|
||||
return await request.get({
|
||||
url: '/friend/list',
|
||||
params
|
||||
})
|
||||
}
|
||||
|
||||
// 群列表
|
||||
export const groupList = async (params: any) => {
|
||||
return await request.get({
|
||||
url: '/group/list',
|
||||
params
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
// 开启/关闭免打扰状态
|
||||
export const friendDnd = async (data: any) => {
|
||||
return await request.put({
|
||||
url: '/friend/dnd',
|
||||
data
|
||||
})
|
||||
}
|
||||
|
||||
// 开启/关闭群免打扰状态
|
||||
export const groupDnd = async (data: any) => {
|
||||
return await request.put({
|
||||
url: '/group/dnd',
|
||||
data
|
||||
})
|
||||
}
|
||||
Reference in new issue
Block a user