Files
x-forend/src/typings.ts
T
2025-01-03 16:44:05 +08:00

39 lines
592 B
TypeScript

// 全局要用的类型放到这里
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',
}