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

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

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

@Data
public class FoodMealMenuBatchSaveDTO {

    @NotNull(message = "开始日期不能为空")
    private LocalDate startDate;

    @NotNull(message = "结束日期不能为空")
    private LocalDate endDate;

    @NotEmpty(message = "请选择周几")
    private List<Integer> weekdays;

    @NotEmpty(message = "请选择服务区域")
    private List<String> serviceAreaIds;

    @NotEmpty(message = "请选择餐别")
    private List<String> mealTypes;

    @NotEmpty(message = "请选择菜单模板")
    @Valid
    private List<FoodMealMenuBatchTemplateDTO> templates;

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

    private String companyId;

    private String companyName;

    private String publishStatus;

    private Integer sortNo;

    private Boolean overwriteExisting;
}
