update: add new field for subscription of user when purchased
This commit is contained in:
@@ -1,15 +1,15 @@
|
||||
import { ApiPropertyOptional } from "@nestjs/swagger";
|
||||
import { Type } from "class-transformer";
|
||||
import { IsDateString, IsEnum, IsOptional, IsString } from "class-validator";
|
||||
import { IsDateString, IsEnum, IsIn, IsOptional, IsString } from "class-validator";
|
||||
|
||||
import { PaginationDto } from "../../../common/DTO/pagination.dto";
|
||||
import { AdsMessage } from "../../../common/enums/message.enum";
|
||||
import { AdsMessage, CategoryMessage } from "../../../common/enums/message.enum";
|
||||
import { AdsDisplayLocation } from "../enums/ads-location.enum";
|
||||
|
||||
export class AdsSearchQueryDto extends PaginationDto {
|
||||
@IsOptional()
|
||||
@Type(() => Number)
|
||||
// @IsBoolean({ message: CategoryMessage.IS_ACTIVE_SHOULD_BE_BOOLEAN })
|
||||
@IsIn([1, 0], { message: CategoryMessage.IS_ACTIVE_SHOULD_BE_1_0 })
|
||||
@ApiPropertyOptional({ description: "ads status", example: 1 })
|
||||
isActive?: number;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user