fix: 接口对接
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
@@ -136,3 +136,7 @@ export interface CreateSessionDTO {
|
||||
*/
|
||||
userId: number;
|
||||
}
|
||||
|
||||
export interface CreateSessionVO {
|
||||
id: number;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user