init
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
import { ApiProperty } from '@nestjs/swagger';
|
||||
import { IsNotEmpty, IsString } from 'class-validator';
|
||||
|
||||
export class ApplyCouponDto {
|
||||
@ApiProperty({ description: 'Coupon code', example: 'DISCOUNT10' })
|
||||
@IsNotEmpty()
|
||||
@IsString()
|
||||
code!: string;
|
||||
}
|
||||
Reference in New Issue
Block a user