package com.jeesharp.business.modules.food.dto;

import com.jeesharp.framework.pojo.dto.BaseSaveDTO;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.time.LocalTime;

@Data
@EqualsAndHashCode(callSuper = true)
public class FoodMealRuleSaveDTO extends BaseSaveDTO {

    private String serviceAreaId;

    private String serviceAreaName;

    private String restaurantId;

    private String mealType;

    @NotBlank(message = "适用范围不能为空")
    private String scopeType;

    @NotNull(message = "提前小时数不能为空")
    private Integer advanceHours;

    @NotNull(message = "提前天数不能为空")
    private Integer advanceDays;

    private LocalTime fixedDeadlineTime;

    @NotNull(message = "可预订未来天数不能为空")
    private Integer bookableFutureDays;

    @NotBlank(message = "取消规则不能为空")
    private String cancelRuleType;

    private Integer cancelDeadlineHours;

    @NotNull(message = "状态不能为空")
    private Integer status;
}
