import { IsInt, Min } from 'class-validator';
import { ApiProperty } from '@nestjs/swagger';

export class CreatePlantingOrderDto {
  @ApiProperty({
    description: '认种数量',
    minimum: 1,
    example: 1,
  })
  @IsInt({ message: '认种数量必须是整数' })
  @Min(1, { message: '认种数量最少为1棵' })
  treeCount: number;
}
