Step F1:前端工程骨架 & 登录鉴权

This commit is contained in:
Cheng Zhou
2025-12-16 20:21:30 +08:00
parent 5eab324c50
commit 78d13d077c
25 changed files with 523 additions and 1 deletions
+27
View File
@@ -0,0 +1,27 @@
export interface ApiListResponse<T> {
items: T[];
total: number;
}
export interface ApiError {
code: string;
message: string;
}
export interface LoginRequest {
username: string;
password: string;
}
export interface LoginResponse {
access_token: string;
token_type: string;
}
export interface UserInfo {
id: string;
username: string;
role: string;
}
export type UserMeResponse = UserInfo;