mirror of
https://gitee.com/beijing_hongye_huicheng/lilishop-ui.git
synced 2026-09-21 04:12:03 +08:00
IM
This commit is contained in:
45
im/src/api/contacts.js
Normal file
45
im/src/api/contacts.js
Normal file
@@ -0,0 +1,45 @@
|
||||
import { post, get } from '@/utils/request'
|
||||
|
||||
// 获取好友列表服务接口
|
||||
export const ServeGetContacts = data => {
|
||||
return get('/contacts/list', data)
|
||||
}
|
||||
|
||||
// 解除好友关系服务接口
|
||||
export const ServeDeleteContact = data => {
|
||||
return post('/contacts/delete', data)
|
||||
}
|
||||
|
||||
// 修改好友备注服务接口
|
||||
export const ServeEditContactRemark = data => {
|
||||
return post('/contacts/edit-remark', data)
|
||||
}
|
||||
|
||||
// 搜索联系人
|
||||
export const ServeSearchContact = data => {
|
||||
return get('/contacts/search', data)
|
||||
}
|
||||
|
||||
// 好友申请服务接口
|
||||
export const ServeCreateContact = data => {
|
||||
return post('/contacts/apply/create', data)
|
||||
}
|
||||
|
||||
// 查询好友申请服务接口
|
||||
export const ServeGetContactApplyRecords = data => {
|
||||
return get('/contacts/apply/records', data)
|
||||
}
|
||||
|
||||
// 处理好友申请服务接口
|
||||
export const ServeApplyAccept = data => {
|
||||
return post('/contacts/apply/accept', data)
|
||||
}
|
||||
|
||||
export const ServeApplyDecline = data => {
|
||||
return post('/contacts/apply/decline', data)
|
||||
}
|
||||
|
||||
// 查询好友申请未读数量服务接口
|
||||
export const ServeFindFriendApplyNum = () => {
|
||||
return get('/contacts/apply-unread-num')
|
||||
}
|
||||
Reference in New Issue
Block a user