feat(DOC): 完整地审查了代码,更完整的注释说明

- 无代码修改
This commit is contained in:
tobegold574
2025-11-23 22:26:39 +08:00
parent 4e741a0523
commit c5853847ae
27 changed files with 119 additions and 110 deletions

View File

@@ -20,7 +20,7 @@ export const chatApi = (client: ApiClient) => ({
return client.post('/chat/sessions', data);
},
// 更新聊天会话
// 更新聊天会话(纯充数那个)
updateSession: ({ sessionId, ...data }: UpdateChatSessionRequest): Promise<{ session: ChatSession }> => {
return client.put(`/chat/sessions/${sessionId}`, data);
},
@@ -30,7 +30,7 @@ export const chatApi = (client: ApiClient) => ({
return client.post(`/chat/sessions/${data.sessionId}/messages`, data);
},
// 获取聊天会话列表
// 获取聊天会话列表(不知道写了个什么玩意儿,转什么,应该不用参数的)
getSessions: (params?: GetChatSessionsRequest): Promise<GetChatSessionsResponse> => {
const config: AxiosRequestConfig = params ? { params } : {};
return client.get('/chat/sessions', config);