Skip to content

Latest commit

 

History

History
82 lines (72 loc) · 1.79 KB

chat.md

File metadata and controls

82 lines (72 loc) · 1.79 KB

私信 API

列出最近联系

请求 GET /chat
响应主体 application/json (DataResponse<ChatListData>)

获取私信

请求 GET /api/chat/record
参数 { user: number; page?: number; }
响应主体 application/json ({ messages: List<Message>; })

发送私信

请求 POST /api/chat/new
请求主体 application/json ({ user: number; content: string; })
响应主体 application/json ({})

删除私信

请求 POST /api/chat/delete
请求主体 application/json ({ id: number; })
响应主体 application/json ({})

清除未读私信通知

请求 POST /api/chat/clearUnread
请求主体 application/json ({ user: number; })
响应主体 application/json ({})