package cn.ysk.cashier.dto.shoptable;

import lombok.Data;

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

@Data
public class ReturnCartDTO {
    @NotNull
    private Integer cartId;
    @NotNull
    private Integer shopId;
    private Long tableId;
    @NotNull
    @DecimalMin(value = "0.01", message = "最小数量为0.01")
    private BigDecimal num;
    private String note;
}
