ERP-node/frontend/types/auth.ts

25 lines
379 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;
}