Initial commit: LACA parking management system
This commit is contained in:
19
backend/src/modules/comment/dto/create-comment.dto.ts
Normal file
19
backend/src/modules/comment/dto/create-comment.dto.ts
Normal file
@@ -0,0 +1,19 @@
|
||||
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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user