rwadurian/backend/services/blockchain-service/src/api/dto/request/verify-mnemonic-hash.dto.ts

19 lines
496 B
TypeScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

import { IsString, IsInt } from 'class-validator';
import { ApiProperty } from '@nestjs/swagger';
export class VerifyMnemonicHashDto {
@ApiProperty({
description: '账户序列号 (8位数字)',
example: 10000001,
})
@IsInt()
accountSequence: number;
@ApiProperty({
description: '助记词 (12个单词空格分隔)',
example: 'abandon abandon abandon abandon abandon abandon abandon abandon abandon abandon abandon about',
})
@IsString()
mnemonic: string;
}