update: add slug field to the danak service entity
This commit is contained in:
@@ -103,4 +103,11 @@ export class CreateServiceDto {
|
||||
@IsUrl({ protocols: ["http", "https"], require_protocol: true }, { message: ServiceMessage.COVER_URL_SHOULD_BE_URL })
|
||||
@ApiProperty({ description: "The cover url of the service", example: "https://example.com/cover.png" })
|
||||
coverUrl?: string;
|
||||
|
||||
@IsOptional()
|
||||
@IsNotEmpty({ message: ServiceMessage.SLUG_REQUIRED })
|
||||
@IsString({ message: ServiceMessage.SLUG_STRING })
|
||||
@Length(3, 150, { message: ServiceMessage.SLUG_LENGTH })
|
||||
@ApiProperty({ description: "The slug of the service", example: "service-slug" })
|
||||
slug?: string;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user