import type { BaseResponse } from '@/types/base';

// 租户响应类型
export interface TenantResponse extends BaseResponse {
    code: string;
    name: string;
    address?: string;
    contactName?: string;
    contactPhone?: string;
    email?: string;
}

// 登录请求参数
export interface LoginRequest {
    tenantId: string;
    username: string;
    password: string;
}

// 登录响应类型
export interface LoginResponse extends BaseResponse {
    token: string;
    username: string;
    nickname?: string;
    email?: string;
    phone?: string;
    enabled: boolean;
    roles: {
        id: number;
        code: string;
        name: string;
        type: number;
    }[];
    permissions: string[];
} 