Files
Klc_backend/src/modules/faq/dto/faq-response.dto.ts

28 lines
676 B
TypeScript

import { ApiProperty, ApiPropertyOptional } from '@nestjs/swagger';
export class FaqResponseDto {
@ApiProperty({ description: 'FAQ ID' })
id: number;
@ApiProperty({ description: 'FAQ question' })
question: string;
@ApiPropertyOptional({ description: 'FAQ category' })
category?: string;
@ApiProperty({ description: 'FAQ answer' })
answer: string;
@ApiProperty({ description: 'FAQ tags', type: [String] })
tags: string[];
@ApiProperty({ description: 'Global tags', type: [String] })
globalTag: string[];
@ApiProperty({ description: 'Creation date' })
createdAt: Date;
@ApiProperty({ description: 'Last update date' })
updatedAt: Date;
}