package com.czg.account.dto.calltable;

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


/**
 * @author Administrator
 */
@Data
public class CallTableDTO {
    /**
     * 台桌名称
     */
    @NotEmpty(message = "台桌名称不为空")
    private String name;
    /**
     * 备注
     */
    private String note;
    /**
     * 等待时间
     */
    @NotNull(message = "等待时间不为空")
    @Min(1)
    private Integer waitTime;
    /**
     * 前缀
     */
    @NotBlank(message = "前缀不为空")
    private String prefix;
    /**
     * 起始号码
     */
    @NotNull(message = "起始号码不为空")
    @Min(1)
    private Integer start;
    /**
     * 临近几桌提醒
     */
    @NotNull(message = "最近号码不为空")
    @Min(1)
    private Integer nearNum;
    /**
     * 是否顺延
     */
    private Integer isPostpone;
    /**
     * 顺延数量
     */
    private Integer postponeNum;
}
