Files
laca-website/backend/src/modules/comment/dto/create-comment.dto.ts

20 lines
310 B
TypeScript

import { ApiProperty } from '@nestjs/swagger';
import {
IsNotEmpty,
IsNumber,
IsString,
} from 'class-validator';
export class CreateCommentDto {
@ApiProperty()
@IsString()
@IsNotEmpty()
content: string;
@ApiProperty()
@IsNumber()
@IsNotEmpty()
slot_id: number
}