| 12345678910111213141516171819202122232425262728293031323334353637 |
- package schema
- import "time"
- // ChatMessage ChatMessage对象
- type ChatMessage struct {
- RecordID string `json:"record_id"` // 记录id
- UserId string `json:"user_id"` // 用户id
- AssistantId string `json:"assistant_id"` // 助手id
- SessionId string `json:"session_id"` // 会话id
- RagSessionId string `json:"rag_session_id"` // rag_session_id
- Question string `json:"question"` // 对话问题
- Answer string `json:"answer"` // 对话答案
- CreatedAt time.Time `json:"created_at"` // 创建时间
- CreatorId string `json:"creator_id"` // 创建人id
- }
- // ChatMessageQueryParam 查询条件
- type ChatMessageQueryParam struct {
- AssistantId string
- SessionId string
- LikeName string
- RecordIDs []string
- }
- // ChatMessageQueryOptions ChatMessage对象查询可选参数项
- type ChatMessageQueryOptions struct {
- PageParam *PaginationParam // 分页参数
- }
- type ChatMessages []*ChatMessage
- // ChatMessageQueryResult ChatMessage对象查询结果
- type ChatMessageQueryResult struct {
- Data ChatMessages
- PageResult *PaginationResult
- }
|