| | |
| | | import lombok.NoArgsConstructor; |
| | | import org.bson.types.ObjectId; |
| | | import org.springframework.data.annotation.Id; |
| | | import org.springframework.data.mongodb.core.index.Indexed; |
| | | import org.springframework.data.mongodb.core.mapping.Document; |
| | | |
| | | /** |
| | | * @author :yys |
| | | * @date : 2025/5/2 19:13 |
| | | */ |
| | | import java.util.Date; |
| | | import java.util.List; |
| | | |
| | | @Data |
| | | @AllArgsConstructor |
| | | @NoArgsConstructor |
| | | @Document("chat_messages") |
| | | public class ChatMessages { |
| | | //唯一标识,映射到 MongoDB 文档的 _id 字段 |
| | | |
| | | @Id |
| | | private ObjectId id; |
| | | |
| | | private String messageId; |
| | | @Indexed(unique = true) |
| | | private String memoryId; |
| | | |
| | | private String content; //存储当前聊天记录列表的json字符串 |
| | | private String content; |
| | | |
| | | /** |
| | | * 多文件分析用户提问信息(与文件路径分开存储) |
| | | */ |
| | | private List<String> analyzeUserQuestions; |
| | | |
| | | /** |
| | | * 多文件分析上传文件路径(图片和 pdf 使用预览地址,其他使用下载地址) |
| | | */ |
| | | private List<String> analyzeFilePaths; |
| | | |
| | | /** |
| | | * 多文件分析每次提问对应的文件路径分组 |
| | | */ |
| | | private List<List<String>> analyzeFilePathGroups; |
| | | |
| | | private Date createTime; |
| | | |
| | | private Date updateTime; |
| | | } |