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

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

import java.util.List;

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

    @NotBlank(message = "模板名称不能为空")
    private String templateName;

    private String templateCode;

    private String mealType;

    private String scopeType;

    private String description;

    private Integer status;

    private Integer sortNo;

    @Valid
    private List<FoodMealMenuTemplateItemSaveDTO> items;
}
