ppob-backend/src/product/dto/product/update-price-product.dto.ts
2022-05-03 19:09:12 +07:00

21 lines
332 B
TypeScript

import { IsNotEmpty } from 'class-validator';
import { productType } from '../../../helper/enum-list';
export class UpdatePriceProductDto {
@IsNotEmpty()
price: number;
@IsNotEmpty()
markUpPrice: number;
@IsNotEmpty()
type: productType;
@IsNotEmpty()
productType: string;
startDate: Date;
endDate: Date;
}