import { ApiProperty } from '@nestjs/swagger';
import { IsString, Length, Matches } from 'class-validator';

export class UpdatePlayerAppearanceDto {
  @ApiProperty({
    description: '要穿戴的角色皮肤ID',
    example: 'classic_whale',
  })
  @IsString({ message: '皮肤ID必须是字符串' })
  @Length(1, 100, { message: '皮肤ID长度需在1-100字符之间' })
  @Matches(/^[A-Za-z0-9_:-]+$/, { message: '皮肤ID格式不正确' })
  skin_id!: string;
}
