export interface AppInfo {
  id: string
  name: string
  icon: string
  shortDescription: {
    'zh-CN': string
    'en-US': string
  }
  description: {
    'zh-CN': string
    'en-US': string
  }
  category: string
  version: string
  buildNumber: string
  releaseDate: string
  releaseNotes: {
    'zh-CN': string[]
    'en-US': string[]
  }
  downloads: {
    ios?: string
    android?: string
    h5?: string
  }
  screenshots?: string[]
  size?: {
    ios?: string
    android?: string
  }
  stats: DownloadStats
}

export interface AppVersion {
  version: string
  buildNumber: string
  releaseDate: string
  releaseNotes: {
    'zh-CN': string[]
    'en-US': string[]
  }
  downloads: {
    ios: string
    android: string
    h5: string
  }
}

export interface DownloadStats {
  total: number
  today: number
  ios: number
  android: number
}

export type Platform = 'ios' | 'android' | 'desktop' | 'unknown'

export interface AppCategory {
  id: string
  name: {
    'zh-CN': string
    'en-US': string
  }
  icon?: string
}
