// 登录模块
export interface Dept {
    id: number;
    deptCode: string;
    deptName: string;
    managerId: null;
}

export namespace Login {
    //登录要传的参数
    export interface ReqLoginCode {
        code: string;
    }
    //登录返回的参数
    interface Dept {
        id: number;
        deptCode: string;
        deptName: string;
        managerId: null;
    }
    export interface ResLogin {
        isSuccess: boolean;
        message: string;
        status: number;
        data: {
            accessToken: {
                token: string;
                phpToken: string;
                tokenType: string;
                refreshToken: string;
                expired: string;
            };
            signedIn: boolean;
            userInfo: {
                seesionId: string;
                ucId: number;
                depts: Dept[];
                staffId: number;
                staff_code: string;
                business_code: null;
                avatar: null;
                closed: number;
                createdAt: string;
                email: null;
                mobile: string;
                nickname: string;
                roleId: string;
                signinAt: string;
                updatedAt: string;
                companyId: number;
                companyName: string;
                orgId: number;
                supplierId: null;
                supplierName: null;
                customerId: null;
                customerName: null;
                identity: number;
            };
        };
    }
}
