package org.dromara.knowledge.domain.bo;

import io.github.linpeilie.annotations.AutoMapper;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
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.knowledge.domain.KnowledgePromptTemplate;

/**
 * 知识库提示模板业务对象 knowledge_prompt_template
 *
 * @author pengles
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = KnowledgePromptTemplate.class, reverseConvertGenerate = false)
public class KnowledgePromptTemplateBo extends BaseEntity {

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

    /**
     * 提示词模板名称
     */
    @NotBlank(message = "提示词模板名称不能为空", groups = {AddGroup.class, EditGroup.class})
    private String templateName;

    /**
     * 提示词模板内容
     */
    @NotBlank(message = "提示词模板内容不能为空", groups = {AddGroup.class, EditGroup.class})
    private String templateContent;

    /**
     * 提示词分类:knowledge知识库类型,chat对话类型,draw绘画类型
     */
    private String category;

    /**
     * 备注
     */
    private String remark;

}