export interface LoginResult {
    accessToken: string;
    refreshToken: string;
    expiresIn: number;
    tokenType: string;
    userInfo: UserInfo;
}

export interface UserInfo {
    id: number;
    username: string;
    name: string;
    role: number; // 0: Student, 1: Admin
    avatar?: string | null;
    studentId?: string;
    email?: string;
    phone?: string;
}

export interface RegisterParams {
    username: string;
    password: string;
    name: string;
    studentId?: string;
    email?: string;
    phone?: string;
}
