package cn.ysk.cashier.dto.shoptable;

import lombok.Data;

import javax.validation.Valid;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.math.BigDecimal;
import java.util.List;

@Data
public class ReturnOrderDTO {

    @Data
    public static class OrderDetail{
        @NotNull
        private Integer id;
        @NotNull
        @Min(1)
        private BigDecimal num;
    }
    @NotNull
    private Integer orderId;
    @NotNull
    private String shopId;
    @NotEmpty
    private String note;
//    @NotEmpty
    private String pwd;
    @Valid
    private List<OrderDetail> orderDetails;
}
