71 lines
1.4 KiB
JavaScript
71 lines
1.4 KiB
JavaScript
import request from '@/utils/request'
|
|
|
|
// 查询好友列表
|
|
export function listFriendShip(query) {
|
|
return request({
|
|
url: '/FriendShip/FriendShip/list',
|
|
method: 'get',
|
|
params: query
|
|
})
|
|
}
|
|
|
|
// App查询好友列表
|
|
export function listFriendShipId(query) {
|
|
return request({
|
|
url: '/FriendShip/FriendShip/list/id',
|
|
method: 'get',
|
|
params: query
|
|
})
|
|
}
|
|
|
|
// 查询好友详细
|
|
export function getFriendShip(id) {
|
|
return request({
|
|
url: '/FriendShip/FriendShip/' + id,
|
|
method: 'get'
|
|
})
|
|
}
|
|
|
|
// 新增好友
|
|
export function addFriendShip(query) {
|
|
return request({
|
|
url: '/FriendShip/FriendShip',
|
|
method: 'post',
|
|
data: query
|
|
})
|
|
}
|
|
|
|
// 修改好友
|
|
export function updateFriendShip(data) {
|
|
return request({
|
|
url: '/FriendShip/FriendShip',
|
|
method: 'put',
|
|
data: data
|
|
})
|
|
}
|
|
|
|
// 删除好友
|
|
export function delFriendShip(id) {
|
|
return request({
|
|
url: '/FriendShip/FriendShip/' + id,
|
|
method: 'delete'
|
|
})
|
|
}
|
|
|
|
// 删除自己单条信息(对方仍然可见)
|
|
export function delMeMessage(data) {
|
|
return request({
|
|
url: '/NotificationHistorical/NotificationHistorical/removeOne',
|
|
method: 'put',
|
|
data: data
|
|
})
|
|
}
|
|
// 删除自己单条信息(对方也不可见)
|
|
export function withdrawMessage(data) {
|
|
return request({
|
|
url: '/NotificationHistorical/NotificationHistorical/withdraw',
|
|
method: 'put',
|
|
data: data
|
|
})
|
|
}
|