export interface AppProduct {
  productId?: number
  productName?: string
  productCode?: string
  appType?: number
  icon?: string
  qrcode?: string
  description?: string
  domain?: string
  homeUrl?: string
  adminUrl?: string
  version?: string
  status?: number
  statusText?: string
  running?: number
  expirationTime?: string
  createTime?: string
  updateTime?: string
  publishStatus?: string
}

export const APP_TYPE_NAME: Record<number, string> = {
  10: '网站',
  20: '微信小程序',
  30: '抖音小程序',
  40: '百度小程序',
  50: '支付宝小程序',
  60: 'Android APP',
  70: 'iOS APP',
  80: 'macOS 应用',
  90: 'Windows 应用',
  100: '插件',
}

export const STATUS_NAME: Record<number, string> = {
  0: '未开通',
  1: '运行中',
  2: '维护中',
  3: '已关闭',
  4: '已欠费',
  5: '违规停机',
}

export const STATUS_COLOR: Record<number, string> = {
  0: '#6b7280',
  1: '#10b981',
  2: '#f59e0b',
  3: '#ef4444',
  4: '#ef4444',
  5: '#ef4444',
}
