import { GET , POST } from '@/utils/fetch' ; import { IRecentMessage , IMessageContent } from '@cc98/api' ; /**
 * 获取近期私信列表
 */ export function getRecentMessage ( from ) { return GET < IRecentMessage [ ] > ( 'message/recent-contact-users' , { params : { from , size : 20 , } , } ) ; } /**
 * 获取私信内容
 */ export function getMessageContent ( userId , from , size ) { return GET < IMessageContent [ ] > ( `message/user/${ userId }` , { params : { from , size , } , } ) ; } /**
 * 发送私信
 */ export function sendMessage ( ReceiverId , Content ) { return POST < string > ( 'message' , { params : { ReceiverId , Content , } , } ) ; }