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

export class RevokeMnemonicDto {
  @ApiProperty({ example: '助记词泄露', description: '挂失原因' })
  @IsString()
  @IsNotEmpty({ message: '请填写挂失原因' })
  @MaxLength(200, { message: '挂失原因不能超过200字' })
  reason: string;
}
