// 全局要用的类型放到这里 export type IResData = { errorCode: number errorMsg: string data: T } // uni.uploadFile文件上传参数 type IUniUploadFileOptions = { file?: File files?: UniApp.UploadFileOptionFiles[] filePath?: string name?: string formData?: any } type IUserInfo = { nickname?: string avatar?: string openid?: string token?: string } type TabBarItem = { icon: string title: string isDot?: boolean value?: number } type HomeTabItem = { icon: string title: string id: number } type HomeTab = { title: string list: HomeTabItem[] } export enum AccountChannel { phone = '1', email = '2' } export enum CodeType { login = '1', reset = '2', bindPhone = '3', unbindPhone = '4', deleteAccount = '5', bindEmail = '6', unbindEmail = '7', deleteLock = '8', updatePassword = '9' }