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

export class ContributionRankingItemResponse {
  @ApiProperty({ description: '排名' })
  rank: number;

  @ApiProperty({ description: '账户序号' })
  accountSequence: string;

  @ApiProperty({ description: '总算力' })
  totalContribution: string;

  @ApiProperty({ description: '个人算力' })
  personalContribution: string;

  @ApiProperty({ description: '团队算力' })
  teamContribution: string;
}

export class ContributionRankingResponse {
  @ApiProperty({ type: [ContributionRankingItemResponse] })
  data: ContributionRankingItemResponse[];
}

export class UserRankResponse {
  @ApiProperty({ description: '排名', nullable: true })
  rank: number | null;

  @ApiProperty({ description: '总算力' })
  totalContribution: string;

  @ApiProperty({ description: '百分位', nullable: true })
  percentile: number | null;
}
