import { IsString, Length, Matches } from 'class-validator';

export class PurchaseMallItemDto {
  @IsString({ message: '商品ID必须是字符串' })
  @Length(1, 100, { message: '商品ID长度需在1-100字符之间' })
  @Matches(/^[A-Za-z0-9_:-]+$/, { message: '商品ID格式不正确' })
  item_id!: string;
}
