feat: ✨ 新增路由守卫
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
import type {
|
||||
ChatSessionVo,
|
||||
CreateSessionDTO,
|
||||
CreateSessionVO,
|
||||
// CreateSessionVO,
|
||||
GetSessionListParams,
|
||||
} from './types';
|
||||
import { get, post } from '@/utils/request';
|
||||
@@ -11,5 +11,5 @@ export function getSessionList(params: GetSessionListParams) {
|
||||
}
|
||||
|
||||
export function createSession(data: CreateSessionDTO) {
|
||||
return post<CreateSessionVO>('/system/session', data);
|
||||
return post('/system/session', data);
|
||||
}
|
||||
|
||||
@@ -137,6 +137,6 @@ export interface CreateSessionDTO {
|
||||
userId: number;
|
||||
}
|
||||
|
||||
export interface CreateSessionVO {
|
||||
id: number;
|
||||
}
|
||||
// export interface CreateSessionVO {
|
||||
// id: number;
|
||||
// }
|
||||
|
||||
Reference in New Issue
Block a user