| | |
| | | |
| | | import io.swagger.v3.oas.annotations.media.Schema; |
| | | import jakarta.validation.constraints.NotEmpty; |
| | | import jakarta.validation.constraints.NotNull; |
| | | import lombok.Data; |
| | | |
| | | @Schema(description = "管理后台 - AI 新增/修改知识库段落 request VO") |
| | | @Schema(description = "管理后台 - AI 知识库分段新增/修改 Request VO") |
| | | @Data |
| | | public class AiKnowledgeSegmentSaveReqVO { |
| | | |
| | | @Schema(description = "编号", example = "24790") |
| | | @Schema(description = "编号", example = "1") |
| | | private Long id; |
| | | |
| | | @Schema(description = "知识库文档编号", example = "1024") |
| | | @Schema(description = "知识库编号(创建时必填,更新时可从已有分段获取)", example = "1") |
| | | private Long knowledgeId; |
| | | |
| | | @Schema(description = "文档编号(创建时必填,更新时可从已有分段获取)", example = "1") |
| | | private Long documentId; |
| | | |
| | | @Schema(description = "切片内容", requiredMode = Schema.RequiredMode.REQUIRED, example = "Java 开发手册") |
| | | @NotEmpty(message = "切片内容不能为空") |
| | | @Schema(description = "分段内容") |
| | | @NotEmpty(message = "分段内容不能为空") |
| | | private String content; |
| | | |
| | | @Schema(description = "状态", example = "0") |
| | | private Integer status; |
| | | |
| | | } |