import { ApiProperty } from '@nestjs/swagger';

export class CityDistributionDto {
  @ApiProperty({ description: '城市代码' })
  cityCode: string;

  @ApiProperty({ description: '认种数量' })
  count: number;
}

export class ProvinceDistributionDto {
  @ApiProperty({ description: '省份代码' })
  provinceCode: string;

  @ApiProperty({ description: '省份总认种量' })
  total: number;

  @ApiProperty({ type: [CityDistributionDto] })
  cities: CityDistributionDto[];
}

export class ProvinceCityDistributionResponseDto {
  @ApiProperty({ type: [ProvinceDistributionDto] })
  provinces: ProvinceDistributionDto[];

  @ApiProperty({ description: '总认种量' })
  totalCount: number;
}

export class TeamStatisticsResponseDto {
  @ApiProperty({ description: '用户ID' })
  userId: string;

  @ApiProperty({ description: '直推人数' })
  directReferralCount: number;

  @ApiProperty({ description: '团队总认种量' })
  totalTeamCount: number;

  @ApiProperty({ description: '个人认种量' })
  personalPlantingCount: number;

  @ApiProperty({ description: '团队认种量' })
  teamPlantingCount: number;

  @ApiProperty({ description: '龙虎榜分值' })
  leaderboardScore: number;

  @ApiProperty({ description: '最大单直推团队认种量' })
  maxDirectTeamCount: number;
}
