|
@@ -1,5 +1,5 @@
|
|
|
import { ApiProperty } from '@nestjs/swagger';
|
|
import { ApiProperty } from '@nestjs/swagger';
|
|
|
-import { IsNotEmpty } from 'class-validator';
|
|
|
|
|
|
|
+import { IsNotEmpty, IsOptional } from 'class-validator';
|
|
|
import { CarousalTargetType } from '../enum/carousal-target-type.enum';
|
|
import { CarousalTargetType } from '../enum/carousal-target-type.enum';
|
|
|
|
|
|
|
|
export class CreateCarousalRequest {
|
|
export class CreateCarousalRequest {
|
|
@@ -16,8 +16,10 @@ export class CreateCarousalRequest {
|
|
|
@ApiProperty({
|
|
@ApiProperty({
|
|
|
example: 'https://example.cc',
|
|
example: 'https://example.cc',
|
|
|
})
|
|
})
|
|
|
|
|
+ @IsOptional()
|
|
|
targetUrl: string;
|
|
targetUrl: string;
|
|
|
|
|
|
|
|
@ApiProperty()
|
|
@ApiProperty()
|
|
|
|
|
+ @IsOptional()
|
|
|
targetId: string;
|
|
targetId: string;
|
|
|
}
|
|
}
|