wangzhibo
2026-10-08 220e4fab27b7f419b3e89e2f2d28ae789aac09d7
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
// 全局要用的类型放到这里
 
declare global {
  interface IResData<T> {
    code: number
    msg: string
    data: T
  }
 
  // uni.uploadFile文件上传参数
  interface IUniUploadFileOptions {
    file?: File
    files?: UniApp.UploadFileOptionFiles[]
    filePath?: string
    name?: string
    formData?: any
  }
 
  interface IUserInfo {
    nickname?: string
    avatar?: string
    /** 微信的 openid,非微信没有这个字段 */
    openid?: string
    token?: string
  }
}
 
export {} // 防止模块污染