package cn.ysk.cashier.dto.shoptable;

import lombok.Data;

import javax.validation.constraints.DecimalMin;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.math.BigDecimal;

@Data
public class UpdatePriceDTO {
    @NotNull
    private Integer shopId;
    @NotNull
    private Integer cartId;
    @DecimalMin("0.01")
    @NotNull
    private BigDecimal saleAmount;
    @NotBlank(message = "折扣原因不能为空")
    private String note;
}
