forked from xiangwang25/whale-town-end-v2
Initial WhaleTown V2 backend
This commit is contained in:
13
src/business/player/dto/update_player_appearance.dto.ts
Normal file
13
src/business/player/dto/update_player_appearance.dto.ts
Normal file
@@ -0,0 +1,13 @@
|
||||
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;
|
||||
}
|
||||
Reference in New Issue
Block a user