import { ApiProperty } from '@nestjs/swagger';
import { Type } from 'class-transformer';
import {
  ArrayMaxSize,
  ArrayNotEmpty,
  IsArray,
  IsNumber,
} from 'class-validator';

export class UpdateOriginGoodTagsDto {
  @ApiProperty({ description: '链接标签 id 全量集合（人工接管）', type: [Number] })
  @IsArray()
  @ArrayNotEmpty()
  @ArrayMaxSize(50)
  @IsNumber({}, { each: true })
  @Type(() => Number)
  tagIds: number[];
}
