ai_scheduler/internal/entitys/bot.go

36 lines
738 B
Go

package entitys
import (
"ai_scheduler/internal/data/model"
"ai_scheduler/internal/pkg/dingtalk"
"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"`
}
func (d *DingTalkBot) GetAppKey() dingtalk.AppKey {
return dingtalk.AppKey{
AppKey: d.ClientId,
AppSecret: d.ClientSecret,
}
}