/**
 * 获取验证码
 * */
export interface LoginFormData {
  username: string;
  password: string;
  captcha: string;
}

/**
 * /check 返回数据
 */
export interface LoginResponseData {
  phone: string;
  googleState: number; // 0=未绑定, 1=已绑定
  /** /check 返回的临时 token，sign/in 和 sign/in/google 接口需要传入 */
  tempToken: string;
}


/**
 * 第二步登录（未绑定谷歌验证 / 已绑定谷歌验证）
 * */
 export interface SignInFormData {
  tempToken: string;
  googleCode?: string; // 已绑定谷歌验证时传入
}

/**
 * 获取验证码后登录 获取验证码类型声明
 */
 export interface SignInResponseData {
  /** 登录成功后访问令牌，与 accessToken 二选一或同时存在时优先 token */
  token?: string;
  accessToken?: string;
  admin: {
    id: number;
    username: string;
    roleId: number;
    roleName: string;
    avatar: string;
    department: {
      id: number;
      name: string;
      leaderId: number;
      remark: string;
      createTime: string;
      updateTime: string;
    };
    email: string;
    enable: number;
    mobilePhone: string;
    qq: string;
    realName: string;
    status: number;
    lastLoginIp: string;
    lastLoginTime: string;
  };

  permissions: [];
}