import { post, get } from '@/utils/request'
|
|
// 获取好友列表服务接口
|
export const ServeGetContacts = data => {
|
return get('/api/v1/contact/list', data)
|
}
|
|
// 解除好友关系服务接口
|
export const ServeDeleteContact = data => {
|
return post('/api/v1/contact/delete', data)
|
}
|
|
// 修改好友备注服务接口
|
export const ServeEditContactRemark = data => {
|
return post('/api/v1/contact/edit-remark', data)
|
}
|
|
// 搜索联系人
|
export const ServeSearchContact = data => {
|
return get('/api/v1/contact/search', data)
|
}
|
|
// 好友申请服务接口
|
export const ServeCreateContact = data => {
|
return post('/api/v1/contact/apply/create', data)
|
}
|
|
// 查询好友申请服务接口
|
export const ServeGetContactApplyRecords = data => {
|
return get('/api/v1/contact/apply/records', data)
|
}
|
|
// 处理好友申请服务接口
|
export const ServeApplyAccept = data => {
|
return post('/api/v1/contact/apply/accept', data)
|
}
|
|
export const ServeApplyDecline = data => {
|
return post('/api/v1/contact/apply/decline', data)
|
}
|
|
// 查询好友申请未读数量服务接口
|
export const ServeFindFriendApplyNum = () => {
|
return get('/api/v1/contact/apply/unread-num')
|
}
|
|
// 搜索用户信息服务接口
|
export const ServeSearchUser = data => {
|
return get('/api/v1/contact/detail', data)
|
}
|