yao/neo/conversation/xun.go
2023-04-29 16:48:37 +08:00

19 lines
424 B
Go

package conversation
// Xun Database conversation
type Xun struct{}
// NewXun create a new conversation
func NewXun() *Xun {
return &Xun{}
}
// GetHistory get the history
func (conv *Xun) GetHistory(sid string) ([]map[string]interface{}, error) {
return []map[string]interface{}{}, nil
}
// SaveHistory save the history
func (conv *Xun) SaveHistory(sid string, messages []map[string]interface{}) error {
return nil
}