fix: 接口对接

This commit is contained in:
Json_Lee
2025-05-12 20:13:09 +08:00
parent 11ce542b5d
commit 7ccfc4a10c
10 changed files with 355 additions and 20 deletions
+2 -1
View File
@@ -1,6 +1,7 @@
import type {
ChatSessionVo,
CreateSessionDTO,
CreateSessionVO,
GetSessionListParams,
} from './types';
import { get, post } from '@/utils/request';
@@ -10,5 +11,5 @@ export function getSessionList(params: GetSessionListParams) {
}
export function createSession(data: CreateSessionDTO) {
return post<null>('/system/session', data);
return post<CreateSessionVO>('/system/session', data);
}
+4
View File
@@ -136,3 +136,7 @@ export interface CreateSessionDTO {
*/
userId: number;
}
export interface CreateSessionVO {
id: number;
}