ERP-node/frontend/types/auth.ts

44 lines
752 B
TypeScript
Raw Normal View History

2025-08-21 09:41:46 +09:00
/**
*
*/
export interface LoginFormData {
userId: string;
password: string;
}
export interface SignupFormData {
userId: string;
password: string;
passwordConfirm: string;
userName: string;
phoneNumber: string;
licenseNumber: string;
vehicleNumber: string;
vehicleType: string; // 차량 타입 (예: 1톤, 5톤, 11톤)
}
2025-08-21 09:41:46 +09:00
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 SignupResponse {
success: boolean;
message?: string;
data?: {
userId: string;
};
}
2025-08-21 09:41:46 +09:00
export interface AuthStatus {
isLoggedIn: boolean;
isAdmin?: boolean;
}