import { request } from '../api/request' ; export interface FriendRequest { _id : string ; from : string ; to : string ; message : string ; } param targetId export async function addFriendRequest ( targetId ) { const { data } = await request . post ( '/api/friend/request/add' , { to : targetId } ) ; return data ; } param requestId export async function acceptFriendRequest ( requestId ) { await request . post ( '/api/friend/request/accept' , { requestId } ) ; } param requestId export async function denyFriendRequest ( requestId ) { await request . post ( '/api/friend/request/deny' , { requestId } ) ; } param requestId export async function cancelFriendRequest ( requestId ) { await request . post ( '/api/friend/request/cancel' , { requestId } ) ; } /**
 * 移除好友(单项)
 */ export async function removeFriend ( friendUserId ) { await request . post ( '/api/friend/removeFriend' , { friendUserId } ) ; }