/**
 * SDK 管理类型定义
 */

export interface SDK {
  id: string;
  name: string;                    // SDK 名称
  icon: string;                    // 图标
  description: string;            // 描述
  version: string;                // 最新版本
  language: 'JavaScript' | 'TypeScript' | 'Python' | 'Java' | 'Go' | 'PHP' | 'Ruby' | '.NET' | 'Swift' | 'Kotlin' | 'Flutter' | 'React Native';
  category: 'web' | 'mobile' | 'server' | 'mini-program';
  downloadCount: number;           // 下载量
  stars: number;                  // Star 数
  docsUrl: string;                // 文档链接
  npmPackage?: string;            // NPM 包名
  downloadUrl: string;            // 下载地址
  changelog: string;               // 更新日志
  dependencies: string[];         // 依赖
  supportedVersions: string[];    // 支持的版本
  lastUpdated: string;             // 最后更新时间
}

export interface SDKVersion {
  version: string;
  releaseDate: string;
  releaseNotes: string;
  downloadUrl: string;
  size: string;
  sha256: string;
}

export interface SDKDownloadRecord {
  id: string;
  sdkId: string;
  sdkName: string;
  version: string;
  language: string;
  userId: string;
  userName: string;
  downloadTime: string;
  ipAddress: string;
}

export interface SDKCategory {
  id: string;
  name: string;
  icon: string;
  count: number;
  description: string;
}
