Migrate project from typing_practiceweb

This commit is contained in:
2026-05-14 16:04:14 +08:00
parent dbc5425706
commit 0e87d5546d
225 changed files with 92811 additions and 0 deletions

24
src/types/auth.ts Normal file
View File

@@ -0,0 +1,24 @@
// src/types/auth.ts
export interface LoginFormValues {
username: string;
password: string;
}
export interface RegisterFormValues extends LoginFormValues {
email?: string;
fullname: string;
confirmPassword: string;
}
export interface LoginResponse {
token: string;
user: {
_id: string;
username: string;
email: string;
fullname: string;
isAdmin: boolean;
};
}
export interface ErrorResponse {
message: string;
code?: string;
}