mirror of
https://github.com/xinnan-tech/xiaozhi-esp32-server.git
synced 2026-11-27 04:49:47 +01:00
- English locale defaults; remove duplicate zh-only locale files - SM2 utility sharing with the web client where applicable
28 lines
534 B
TypeScript
28 lines
534 B
TypeScript
// Global types used here
|
|
|
|
declare global {
|
|
interface IResData<T> {
|
|
code: number
|
|
msg: string
|
|
data: T
|
|
}
|
|
|
|
// uni.uploadFile file upload parameters
|
|
interface IUniUploadFileOptions {
|
|
file?: File
|
|
files?: UniApp.UploadFileOptionFiles[]
|
|
filePath?: string
|
|
name?: string
|
|
formData?: any
|
|
}
|
|
|
|
interface IUserInfo {
|
|
nickname?: string
|
|
avatar?: string
|
|
/** WeChat openid, non-WeChat does not have this field */
|
|
openid?: string
|
|
token?: string
|
|
}
|
|
}
|
|
|
|
export {} // Prevent module pollution
|