import { ApiProperty } from '@nestjs/swagger';
import { IsEnum, IsNotEmpty } from 'class-validator';

export enum SettleCurrency {
  BNB = 'BNB',
  OG = 'OG',
  USDT = 'USDT',
  DST = 'DST',
}

export class SettleRewardsDto {
  @ApiProperty({
    description: '结算币种',
    enum: SettleCurrency,
    example: SettleCurrency.USDT,
  })
  @IsNotEmpty({ message: '请选择结算币种' })
  @IsEnum(SettleCurrency, { message: '无效的结算币种' })
  settleCurrency: SettleCurrency;
}
