ERP-node/frontend/types/auth.ts

44 lines
713 B
TypeScript
Raw Normal View History

2025-08-21 09:41:46 +09:00
/**
*
*/
export interface LoginFormData {
userId: string;
password: string;
}
export interface LoginResponse {
success: boolean;
message?: string;
2025-10-28 14:55:41 +09:00
data?: {
token?: string;
userInfo?: any;
firstMenuPath?: string | null;
};
2025-08-21 09:41:46 +09:00
errorCode?: string;
}
export interface AuthStatus {
isLoggedIn: boolean;
isAdmin?: boolean;
}
export interface RegisterFormData {
userId: string;
password: string;
passwordConfirm: string;
userName: string;
licenseNumber: string;
vehicleNumber: string;
phoneNumber: string;
}
export interface RegisterResponse {
success: boolean;
message?: string;
data?: {
userId: string;
};
errorCode?: string;
}