16 lines
392 B
TypeScript
16 lines
392 B
TypeScript
import { IsString, IsNumberString } from 'class-validator';
|
|
import { ApiProperty } from '@nestjs/swagger';
|
|
|
|
export class DeriveAddressDto {
|
|
@ApiProperty({ description: '用户ID', example: '12345' })
|
|
@IsNumberString()
|
|
userId: string;
|
|
|
|
@ApiProperty({
|
|
description: '压缩公钥 (33 bytes, 0x02/0x03 开头)',
|
|
example: '0x02abc123...',
|
|
})
|
|
@IsString()
|
|
publicKey: string;
|
|
}
|