starwork-uniapp/src/typings.ts
2025-01-09 19:14:27 +08:00

57 lines
813 B
TypeScript

// 全局要用的类型放到这里
export type IResData<T> = {
errorCode: number
errorMsg: string
data: T
}
export type TabBarItem = {
icon: string
title: string
isDot?: boolean
value?: number
}
export type HomeTabItem = {
icon: string
name: string
url?: string
id: number
}
export type HomeTab = {
name: 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'
}
export enum PlatId {
web = 1,
app = 2,
miniProgram = 3,
pc = 4
}
export type OutsideRules = {
allow: boolean
takePhoto: boolean
remark: boolean
selectPhoto: boolean
}