init push
This commit is contained in:
24
backend/domain/wechat.go
Normal file
24
backend/domain/wechat.go
Normal file
@@ -0,0 +1,24 @@
|
||||
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"`
|
||||
}
|
||||
Reference in New Issue
Block a user