25 lines
426 B
Go
25 lines
426 B
Go
package domain
|
|
|
|
import (
|
|
"bytes"
|
|
"sync"
|
|
)
|
|
|
|
// ConversationState
|
|
type ConversationState struct {
|
|
Mutex sync.Mutex
|
|
Question string
|
|
Buffer bytes.Buffer
|
|
IsVisited bool
|
|
IsDone bool
|
|
NotificationChan chan string
|
|
}
|
|
|
|
// ConversationManager
|
|
var ConversationManager = sync.Map{}
|
|
|
|
type WechatStatic struct {
|
|
BaseUrl string `json:"base_url"`
|
|
ImagePath string `json:"image_path"`
|
|
}
|