ERP-node/frontend/types/auth.ts

43 lines
687 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;
}
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;
}