package org.dromara.web.domain.bo;

import io.github.linpeilie.annotations.AutoMapper;
import jakarta.validation.constraints.NotBlank;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import org.dromara.common.mybatis.core.domain.BaseEntity;
import org.dromara.web.domain.ProductNutrition;

import java.util.List;
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = ProductNutrition.class, reverseConvertGenerate = false)
public class BatchProductNuyritionBo extends BaseEntity {
    /*多选传过来的ids*/
    private List<Long> ids;

    /**
     * 许可证有效期提醒
     */
    private String licenseExpiryReminder;

    /**
     * 保质期临期提醒
     */
    @NotBlank(message = "保质期临期提醒不能为空", groups = { AddGroup.class, EditGroup.class })
    private String shelfLifeReminder;
}
