epic_explorer/server/dtos/BlockchainInput.ts

44 lines
681 B
TypeScript
Raw Normal View History

2019-07-09 09:22:36 +00:00
import { IsInt, IsNotEmpty, IsString } from 'class-validator';
export class BlockchainInputCreateDto {
@IsString()
@IsNotEmpty()
public Data: string;
@IsString()
@IsNotEmpty()
public Block: any;
}
export class BlockchainInputUpdateDto {
@IsInt()
@IsNotEmpty()
public Id: number;
@IsString()
public Data: string;
@IsString()
public Block: any;
}
export class BlockchainInputSingleViewDto {
@IsString()
@IsNotEmpty()
Id: string;
}
export class BlockchainInputPaginationDto {
@IsInt()
@IsNotEmpty()
public CurrentPage: number;
@IsInt()
@IsNotEmpty()
public PageSize: number;
@IsInt()
@IsNotEmpty()
public MaxPages: number;
}