// 统计数据类型定义

export interface StatisticsOverview {
  totalAdoptions: number;
  todayAdoptions: number;
  monthlyAdoptions: number;
  activeUsers: number;
  provincialCompanies: number;
  cityCompanies: number;
}

export interface TrendData {
  date: string;
  value: number;
}

export interface MonthlyGrowthData {
  month: string;
  adoptions: number;
  growth: number;
}

export interface RegionDistributionData {
  region: string;
  percentage: number;
  color: string;
}

export interface LeaderboardStats {
  activeTab: 'daily' | 'weekly' | 'monthly';
  rankings: RankingItem[];
  topProvince: {
    name: string;
    completionData: number;
  };
  topCity: {
    name: string;
    completionData: number;
  };
}

export interface RankingItem {
  rank: number;
  avatar: string;
  nickname: string;
  isVirtual: boolean;
  adoptionCount: number;
  teamData: string;
  province?: string;
  city?: string;
}

export interface RegionStats {
  region: string;
  period: string;
  adoptionCount: number;
  percentage: number;
}

export interface OperationStats {
  summary: {
    monthlyHashRate: string;
    cumulativeHashRate: string;
    monthlyMining: string;
    cumulativeMining: string;
    monthlyCommission: number;
    cumulativeCommission: number;
    monthlyAdoptionBonus: number;
  };
  details: OperationDetail[];
}

export interface OperationDetail {
  accountType: 'province' | 'city';
  accountName: string;
  statMonth: string;
  hashRate: string;
  miningAmount: string;
  commission: number;
}

export interface RevenueDetail {
  timestamp: string;
  account: string;
  source: 'mining' | 'adoption_completion' | 'share';
  amount: number;
  relatedAddress: string;
  transactionId: string;
}

export interface ActivityItem {
  id: string;
  type: 'user_register' | 'company_activity' | 'system_update' | 'report_generated';
  icon: string;
  title: string;
  description: string;
  timestamp: string;
}
