feat: ✨ 新增路由守卫

This commit is contained in:
何嘉悦
2025-05-25 18:06:09 +08:00
parent 16b59d6ab2
commit f4d078ca07
52 changed files with 928 additions and 282 deletions
+2 -2
View File
@@ -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);
}
+3 -3
View File
@@ -137,6 +137,6 @@ export interface CreateSessionDTO {
userId: number;
}
export interface CreateSessionVO {
id: number;
}
// export interface CreateSessionVO {
// id: number;
// }