package com.czg.account.dto.table;

import jakarta.validation.constraints.Max;
import jakarta.validation.constraints.Min;
import jakarta.validation.constraints.NotEmpty;
import jakarta.validation.constraints.NotNull;
import lombok.Data;


/**
 * @author Administrator
 */
@Data
public class ShopTableAddDTO {
    /**
     * 台桌前缀
     */
    @NotEmpty(message = "台桌标识不为空")
    private String sign;
    /**
     * 区域id
     */
    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 maxCapacity;
    /**
     * 是否自动清台
     */
    private Integer autoClear = 1;
}
