ai_scheduler/internal/entitys/bot.go

34 lines
752 B
Go

package entitys
import (
"ai_scheduler/internal/data/model"
"gitea.cdlsxd.cn/self-tools/l-dingtalk-stream-sdk-go/chatbot"
)
type RequireDataDingTalkBot struct {
Histories []model.AiChatHi
UserInfo *DingTalkUserInfo
Tools []model.AiBotTool
Match *Match
Req *chatbot.BotCallbackDataModel
Ch chan Response
ID int32
}
type DingTalkBot struct {
BotIndex string `json:"bot_index"`
ClientId string `json:"client_id"`
ClientSecret string `json:"client_secret"`
}
type Task struct {
Index string `json:"bot_index"`
OutPutFormat OutPutFormat `json:"out_put_format"`
}
type OutPutFormat string
const OutPutFormatMarkdown OutPutFormat = "markdown"
const OutPutFormatHtml OutPutFormat = "html"