jeecgBootUniapp/src/typings.d.ts

40 lines
762 B
Vue
Raw Normal View History

2025-04-29 08:37:17 +00:00
// 全局要用的类型放到这里
declare global {
2025-05-09 01:42:19 +00:00
type IResData<T> = {
code : number
msg : string
data : T
}
2025-04-29 08:37:17 +00:00
2025-05-09 01:42:19 +00:00
// uni.uploadFile文件上传参数
type IUniUploadFileOptions = {
file ?: File
files ?: UniApp.UploadFileOptionFiles[]
filePath ?: string
name ?: string
formData ?: any
}
2025-04-29 08:37:17 +00:00
2025-05-09 01:42:19 +00:00
type IUserInfo = {
token ?: string
userid ?: string
username ?: string
realname ?: string
orgCode ?: string
department ?: string
workNo ?: string
avatar ?: string
tenantId ?: string | number
// sex ?: number
phone ?: string
post ?: string
email ?: string
/** 微信的 openid非微信没有这个字段 */
openid ?: string
// 存到本地的时间戳
localStorageTime : number
}
2025-04-29 08:37:17 +00:00
}
2025-05-09 01:42:19 +00:00
export { } // 防止模块污染