2024-03-09 15:02:29 +08:00
|
|
|
|
/* eslint-disable @typescript-eslint/no-unused-vars */
|
2024-03-01 14:27:45 +08:00
|
|
|
|
/* eslint-disable no-unused-vars */
|
2024-02-01 19:51:58 +08:00
|
|
|
|
// 全局要用的类型放到这里
|
|
|
|
|
|
2024-03-09 15:02:29 +08:00
|
|
|
|
type IResData<T> = {
|
2024-02-01 19:51:58 +08:00
|
|
|
|
code: number
|
|
|
|
|
msg: string
|
|
|
|
|
result: T
|
|
|
|
|
}
|
|
|
|
|
|
2024-03-27 17:46:19 +08:00
|
|
|
|
// uni.uploadFile文件上传参数
|
|
|
|
|
type IUniUploadFileOptions = {
|
|
|
|
|
file?: File
|
|
|
|
|
files?: UniApp.UploadFileOptionFiles[]
|
|
|
|
|
filePath?: string
|
|
|
|
|
name?: string
|
|
|
|
|
formData?: any
|
|
|
|
|
}
|
|
|
|
|
|
2024-03-09 15:02:29 +08:00
|
|
|
|
type IUserInfo = {
|
2024-01-20 18:41:18 +08:00
|
|
|
|
nickname?: string
|
|
|
|
|
avatar?: string
|
2024-01-20 18:21:42 +08:00
|
|
|
|
/** 微信的 openid,非微信没有这个字段 */
|
|
|
|
|
openid?: string
|
2024-01-19 17:28:04 +08:00
|
|
|
|
token?: string
|
2023-12-23 11:27:00 +08:00
|
|
|
|
}
|
2024-03-01 14:27:45 +08:00
|
|
|
|
|
2024-03-09 15:02:29 +08:00
|
|
|
|
enum TestEnum {
|
2024-03-01 14:27:45 +08:00
|
|
|
|
A = 'a',
|
|
|
|
|
B = 'b',
|
|
|
|
|
}
|