package com.sckw.product.model.vo.req;

import jakarta.validation.constraints.DecimalMin;
import jakarta.validation.constraints.NotNull;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import java.math.BigDecimal;

/**
 * @desc: 获取价格请求参数
 * @author: yzc
 * @date: 2023-09-05 10:03
 */
@Getter
@Setter
@ToString
public class GetPriceParam {

    @NotNull(message = "商品id不能为空")
    private Long goodsId;

    @NotNull(message = "订单数量不能为空")
    @DecimalMin(value = "0.01",message = "订单数量必须大于零")
    private BigDecimal num;

}
