| 1234567891011121314151617181920212223242526272829303132333435363738394041 |
- // 全局要用的类型放到这里
- declare global {
- type IResData<T> = {
- Status: number
- Message: string
- Data: T
- OtherData?: any
- }
- // uni.uploadFile文件上传参数
- type IUniUploadFileOptions = {
- file?: File
- files?: UniApp.UploadFileOptionFiles[]
- filePath?: string
- name?: string
- formData?: any
- }
- type IUserInfo = {
- nickName?: string
- avatarUrl?: string
- /** 微信的 openid,非微信没有这个字段 */
- openid?: string
- token?: string
- gender?: number
- language?: string
- city?: string
- province?: string
- country?: string
- is_demote?: boolean
- }
- type IAppInfo = {
- token?: string
- userid?: string
- openid?: string
- }
- }
- export {} // 防止模块污染
|