package org.dromara.web.domain.bo;

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

import java.util.Date;
import java.util.List;

/**
 * 营养宣教业务对象 nutrition_education
 *
 * @author Lion Li
 * @date 2025-07-18
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = NutritionEducation.class, reverseConvertGenerate = false)
public class NutritionEducationBo extends BaseEntity {

    /**
     *
     */
    @NotNull(message = "不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 患者id
     */
    @NotNull(message = "患者id不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long patientId;

    /**
     * 营养宣教标题
     */
    private String educationTitle;

    /**
     * 营养宣教模板id
     */
    private Long educationTemplateId;

    /**
     * 描述
     */
    private String description;

    /**
     * 正文
     */
    private String content;

    /**
     * 看诊类型
     */
    private String type;

    /**
     * 科室
     */
    private Long deptId;

    /**
     * 门诊号
     */
    private String outpatientNo;

    private List<Date> dateRange;

    private String contentStr;


}
