// 全局要用的类型放到这里

type IResData<T> = {
  code: number
  msg: string
  data: T
}

// uni.uploadFile文件上传参数
type IUniUploadFileOptions = {
  file?: File
  files?: UniApp.UploadFileOptionFiles[]
  filePath?: string
  name?: string
  formData?: any
}

type IUserInfo = {
  avatar: string
  createtime: number
  expires_in: number
  expiretime: number
  id: number
  invitecode: string
  mobile: string
  money: string
  nickname: string
  point: number
  score: number
  token: string
  user_id: number
  username: string
}

enum TestEnum {
  A = 'a',
  B = 'b',
}
