27 lines
504 B
TypeScript
27 lines
504 B
TypeScript
import { IsNotEmpty, IsString } from 'class-validator';
|
|
import { GateLogEntity } from '../../domain/entity/gate-request.entity';
|
|
import { ApiProperty } from '@nestjs/swagger';
|
|
|
|
export class GateLogDto implements GateLogEntity {
|
|
@ApiProperty({
|
|
type: String,
|
|
required: true,
|
|
})
|
|
@IsNotEmpty()
|
|
@IsString()
|
|
gate_id: string;
|
|
|
|
@ApiProperty({
|
|
type: String,
|
|
required: true,
|
|
})
|
|
@IsNotEmpty()
|
|
@IsString()
|
|
code: string;
|
|
|
|
@ApiProperty({
|
|
required: false,
|
|
})
|
|
error: any;
|
|
}
|