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

/**
 * 区域分布项
 */
export class RegionDistributionItemDto {
  @ApiProperty({ description: '区域名称', example: '华东地区' })
  region: string;

  @ApiProperty({ description: '占比百分比', example: 35 })
  percentage: number;

  @ApiProperty({ description: '颜色', example: '#1565C0' })
  color: string;
}

/**
 * 区域分布响应
 */
export class DashboardRegionResponseDto {
  @ApiProperty({ type: [RegionDistributionItemDto], description: '区域分布列表' })
  regions: RegionDistributionItemDto[];
}
