36 lines
608 B
TypeScript
36 lines
608 B
TypeScript
import { ApiProperty } from '@nestjs/swagger';
|
|
import { AccessType } from '../../enums/access-types.enum';
|
|
|
|
export class GetTestByIdDTO {
|
|
@ApiProperty({
|
|
type: 'number',
|
|
example: 1,
|
|
})
|
|
id!: number;
|
|
|
|
@ApiProperty({
|
|
type: 'string',
|
|
example: 'Test Title',
|
|
})
|
|
title!: string;
|
|
|
|
@ApiProperty({
|
|
type: 'string',
|
|
example: 'Test description',
|
|
})
|
|
description!: string;
|
|
|
|
@ApiProperty({
|
|
enum: AccessType,
|
|
enumName: 'accessType',
|
|
example: 'login',
|
|
})
|
|
accessType!: AccessType;
|
|
|
|
@ApiProperty({
|
|
type: 'string',
|
|
example: '1000000',
|
|
})
|
|
price!: string;
|
|
}
|