import { IsString, IsNumber, IsNotEmpty, Min, IsDecimal } from 'class-validator';
import { ApiProperty } from '@nestjs/swagger';

export class CreateTransferDto {
  @ApiProperty({ description: '原认种订单号', example: 'PLT260101A1B2C3D4' })
  @IsString()
  @IsNotEmpty()
  sourceOrderNo: string;

  @ApiProperty({ description: '转让棵数', example: 1 })
  @IsNumber()
  @Min(1)
  treeCount: number;

  @ApiProperty({ description: '转让总价 (USDT)', example: '15000.00000000' })
  @IsString()
  @IsNotEmpty()
  transferPrice: string;
}
