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

export class RevokeMnemonicDto {
  @ApiProperty({ example: 'D2512110001', description: '账户序列号' })
  @IsString()
  @IsNotEmpty()
  accountSequence: string;

  @ApiProperty({ example: '助记词泄露', description: '挂失原因' })
  @IsString()
  @IsNotEmpty()
  @MaxLength(200)
  reason: string;
}
