package cn.ysk.cashier.dto.shoptable;

import lombok.Data;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

@Data
public class TableGenerateDTO {
    @NotNull
    private Integer shopId;
    @NotEmpty
    private String sign;
    private Integer areaId;
    @Min(1)
    @NotNull
    private Integer start;
    @Min(2)
    @Max(1000)
    @NotNull
    private Integer end;
    @NotNull
    @Min(message = "客位数最小为1", value = 1)
    private Integer capacity;
    private Integer autoClear = 1;
}
