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

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

import java.time.LocalDate;
import java.util.List;

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

    private String restaurantId;

    @NotBlank(message = "服务区域ID不能为空")
    private String serviceAreaId;

    @NotBlank(message = "菜单模板ID不能为空")
    private String templateId;

    @NotNull(message = "菜单日期不能为空")
    private LocalDate menuDate;

    @NotBlank(message = "餐别不能为空")
    private String mealType;

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

    private String companyId;

    private String companyName;

    private String publishStatus;

    private Integer sortNo;

    @Valid
    private List<FoodMealMenuItemSaveDTO> items;
}
