2025-08-21 09:41:46 +09:00
|
|
|
/**
|
|
|
|
|
* 인증 관련 타입 정의
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
export interface LoginFormData {
|
|
|
|
|
userId: string;
|
|
|
|
|
password: string;
|
|
|
|
|
}
|
|
|
|
|
|
2025-11-13 16:06:39 +09:00
|
|
|
export interface SignupFormData {
|
|
|
|
|
userId: string;
|
|
|
|
|
password: string;
|
|
|
|
|
passwordConfirm: string;
|
|
|
|
|
userName: string;
|
|
|
|
|
phoneNumber: string;
|
|
|
|
|
licenseNumber: string;
|
|
|
|
|
vehicleNumber: string;
|
2025-11-28 17:24:18 +09:00
|
|
|
vehicleType: string; // 차량 타입 (예: 1톤, 5톤, 11톤)
|
2025-11-13 16:06:39 +09:00
|
|
|
}
|
|
|
|
|
|
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;
|
|
|
|
|
}
|
|
|
|
|
|
2025-11-13 16:06:39 +09:00
|
|
|
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;
|
|
|
|
|
}
|