import { PageQueryParam, PageResult } from '../base';

/**
 * 版本管理查询参数类型声明
 */
export interface AppRevisionQueryParam extends PageQueryParam {
  property?: string;
  direction?: string;
}

/**
 * 版本管理分页项类型
 */
export type AppRevisionPageResult = PageResult<AppRevisionItem[]>;

/**
 * 版本管理列表项声明
 */
export interface AppRevisionItem {
  id: number;
  downloadUrl: string;
  lowestVersion: string;
  platform: number;
  publishTime: string;
  remark: string;
  updateDescription: string;
  version: string;
}

/**
 * 更新描述多语言内容
 */
export interface AppRevisionLangContent {
  zh_CN: string;
  zh_HK: string;
  en_US: string;
  ko_KR: string;
  ja_JP: string;
  hi_IN: string;
  id_ID: string;
}

/**
 * 更新版本管理表单类型声明
 */
export interface AppRevisionFormData {
  downloadUrl: string;
  lowestVersion: string;
  platform: number;
  publishTime: string;
  remark: string;
  descriptions: AppRevisionLangContent;
  version: string;
}