fix: import the danakservice module in subscription module
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
import { ApiProperty } from "@nestjs/swagger";
|
||||
import { IsBoolean, IsInt, IsNotEmpty, IsString, Length } from "class-validator";
|
||||
import { IsBoolean, IsInt, IsNotEmpty, IsString, IsUUID, Length, Min } from "class-validator";
|
||||
|
||||
import { SubscriptionMessage } from "../../../common/enums/message.enum";
|
||||
|
||||
@@ -17,6 +17,7 @@ export class CreateSubscriptionPlanDto {
|
||||
|
||||
@IsNotEmpty({ message: SubscriptionMessage.PRICE_REQUIRED })
|
||||
@IsInt({ message: SubscriptionMessage.PRICE_SHOULD_BE_INT })
|
||||
@Min(100_000, { message: SubscriptionMessage.PRICE_SHOULD_BE_GREATER_THAN_100_000 })
|
||||
@ApiProperty({ description: "the price of the subscription plan", example: 10_000_000 })
|
||||
price: number;
|
||||
|
||||
@@ -24,4 +25,9 @@ export class CreateSubscriptionPlanDto {
|
||||
@IsBoolean({ message: SubscriptionMessage.IS_ACTIVE_SHOULD_BE_BOOLEAN })
|
||||
@ApiProperty({ description: "the status of the subscription plan", example: true })
|
||||
isActive: boolean;
|
||||
|
||||
@IsNotEmpty({ message: SubscriptionMessage.SERVICE_REQUIRED })
|
||||
@IsUUID("4", { message: SubscriptionMessage.SERVICE_MUST_BE_UUID })
|
||||
@ApiProperty({ description: "Service ID", example: "d290f1ee-6c54-4b01-90e6-d701748f0851" })
|
||||
serviceId: string;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user