src/core/http/response/base-entity.response.ts
Properties |
createdAt |
Type : number
|
Decorators :
@ApiProperty()
|
id |
Type : string
|
Decorators :
@ApiProperty()
|
updatedAt |
Type : number
|
Decorators :
@ApiProperty()
|
import { ApiProperty } from '@nestjs/swagger';
import { IsNumber, IsUUID } from 'class-validator';
export class BaseEntityResponse {
@ApiProperty()
@IsUUID()
id: string;
@ApiProperty()
@IsNumber()
createdAt: number;
@ApiProperty()
@IsNumber()
updatedAt: number;
}