四零语境后端代码仓库
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

42 lines
849 B

// 全局要用的类型放到这里
declare global {
type IResData<T> = {
code: number
success: boolean
message: string
result: T
data: T
}
// uni.uploadFile文件上传参数
type IUniUploadFileOptions = {
file?: File
files?: UniApp.UploadFileOptionFiles[]
filePath?: string
name?: string
formData?: any
}
type IUserInfo = {
token?: string
userid?: string
username?: string
realname?: string
welcome?: string
avatar?: string
tenantId?: string | number
loginTenantId?: string | number
sex?: number
phone?: string
email?: string
birthday?: string
orgCode?: string
/** 微信的 openid,非微信没有这个字段 */
openid?: string
// 存到本地的时间戳
localStorageTime: number
}
}
export {} // 防止模块污染