mirror of
https://gitee.com/beijing_hongye_huicheng/lilishop-ui.git
synced 2025-12-17 08:25:52 +08:00
IM
This commit is contained in:
66
im/src/api/group.js
Normal file
66
im/src/api/group.js
Normal file
@@ -0,0 +1,66 @@
|
||||
import { post, get } from '@/utils/request'
|
||||
|
||||
// 查询用户群聊服务接口
|
||||
export const ServeGetGroups = () => {
|
||||
return get('/group/list')
|
||||
}
|
||||
|
||||
// 获取群信息服务接口
|
||||
export const ServeGroupDetail = data => {
|
||||
return get('/group/detail', data)
|
||||
}
|
||||
|
||||
// 创建群聊服务接口
|
||||
export const ServeCreateGroup = data => {
|
||||
return post('/group/create', data)
|
||||
}
|
||||
|
||||
// 修改群信息
|
||||
export const ServeEditGroup = data => {
|
||||
return post('/group/edit', data)
|
||||
}
|
||||
|
||||
// 邀请好友加入群聊服务接口
|
||||
export const ServeInviteGroup = data => {
|
||||
return post('/group/invite', data)
|
||||
}
|
||||
|
||||
// 移除群聊成员服务接口
|
||||
export const ServeRemoveMembersGroup = data => {
|
||||
return post('/group/remove-members', data)
|
||||
}
|
||||
|
||||
// 管理员解散群聊服务接口
|
||||
export const ServeDismissGroup = data => {
|
||||
return post('/group/dismiss', data)
|
||||
}
|
||||
|
||||
// 用户退出群聊服务接口
|
||||
export const ServeSecedeGroup = data => {
|
||||
return post('/group/secede', data)
|
||||
}
|
||||
|
||||
// 修改群聊名片服务接口
|
||||
export const ServeUpdateGroupCard = data => {
|
||||
return post('/group/set-group-card', data)
|
||||
}
|
||||
|
||||
// 获取用户可邀请加入群组的好友列表
|
||||
export const ServeGetInviteFriends = data => {
|
||||
return get('/group/invite-friends', data)
|
||||
}
|
||||
|
||||
// 获取群组成员列表
|
||||
export const ServeGetGroupMembers = data => {
|
||||
return get('/group/members', data)
|
||||
}
|
||||
|
||||
// 获取群组公告列表
|
||||
export const ServeGetGroupNotices = data => {
|
||||
return get('/group/notices', data)
|
||||
}
|
||||
|
||||
// 编辑群公告
|
||||
export const ServeEditGroupNotice = data => {
|
||||
return post('/group/edit-notice', data)
|
||||
}
|
||||
Reference in New Issue
Block a user