( converseId: string, startId?: string )
| 46 | * @param startId 开始ID |
| 47 | */ |
| 48 | export async function fetchConverseMessage( |
| 49 | converseId: string, |
| 50 | startId?: string |
| 51 | ): Promise<ChatMessage[]> { |
| 52 | const { data } = await request.get('/api/chat/message/fetchConverseMessage', { |
| 53 | params: { |
| 54 | converseId, |
| 55 | startId, |
| 56 | }, |
| 57 | }); |
| 58 | |
| 59 | return data; |
| 60 | } |
| 61 | |
| 62 | /** |
| 63 | * 发送消息 |
no test coverage detected