package org.dromara.system.domain.bo;

import org.dromara.system.domain.AiKnowledgeFragmentDo;
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.*;

/**
 * 知识片段业务对象 ai_knowledge_fragment
 *
 * @author wangkang
 * @date 2025-09-17
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = AiKnowledgeFragmentDo.class, reverseConvertGenerate = false)
public class AiKnowledgeFragmentBo extends BaseEntity {

    /**
     *
     */
    private Long id;

    /**
     * 知识库ID
     */
    private String knowledgeCode;

    /**
     * 文档ID
     */
    private String docCode;

    /**
     * 知识片段ID
     */
    private String fragmentCode;

    /**
     * 片段索引下标
     */
    private Long idx;

    /**
     * 文档内容
     */
    @NotBlank(message = "文档内容不能为空", groups = { AddGroup.class, EditGroup.class })
    private String content;

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


}
