/** POST uc/approve/security/setting — 后端返回数字 0/1，兼容字符串 "0"/"1" */
export interface AccountAuth {
  id: number | string
  username: string
  mobilePhone: string | null
  email: string
  realVerified: number | string
  emailVerified: number | string
  loginVerified: number | string
  fundsVerified: number | string
  googleStatus: number | string
  /** 部分网关返回 snake_case */
  google_status?: number | string
}

/** POST uc/member/my-info（字段以后端为准，此处宽松映射） */
export interface MemberProfile {
  uid: string
  email: string
  rawEmail: string
  registeredAt: string
  /** 头像 URL，与跟单 `GET /follow/customer/`、`avatar`/`headImg` 同源；无则 null */
  avatar: string | null
  avatarLetter: string
  isBroker: boolean
  /** promotionCode */
  inviteCode: string
  /** promotionPrefix + promotionCode */
  inviteUrl: string
}

/** GET uc/google/sendgoogle */
export interface GoogleAuthenticatorSecret {
  link: string
  secret: string
}
