| 请求 | 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 ({}) |
| WebSocket 频道 | channel = chat, channel_param = uid |
|---|---|
| 初始数据 | "" |
| 接收数据 | ClientboundChatMessageData |
| 发送数据 | never |