复制项目

This commit is contained in:
kim.dev.6789
2026-01-14 22:35:45 +08:00
parent 305d526110
commit b7f8db7d08
297 changed files with 81784 additions and 0 deletions

View File

@@ -0,0 +1,22 @@
package bot
import (
"context"
)
type ConversationRespID struct {
ConversationID string `bson:"conversation_id"`
AgentID string `bson:"agent_id"`
PreviousResponseID string `bson:"previous_response_id"`
}
func (ConversationRespID) TableName() string {
return "conversation_resp_id"
}
type ConversationRespIDInterface interface {
Create(ctx context.Context, elems ...*ConversationRespID) error
Take(ctx context.Context, convID, agentID string) (*ConversationRespID, error)
Update(ctx context.Context, convID, agentID string, data map[string]any) error
Delete(ctx context.Context, convID, agentID string) error
}