复制项目
This commit is contained in:
22
pkg/common/db/table/bot/conversation_resp_id.go
Normal file
22
pkg/common/db/table/bot/conversation_resp_id.go
Normal 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
|
||||
}
|
||||
Reference in New Issue
Block a user