Documentation
¶
Index ¶
- Constants
- Variables
- func CheckRequest(ts, sg string) bool
- func CheckRequestWithCredentials(ts, sg string) (clientId string, pass bool)
- func FirstCheck(rmsg *dingbot.ReceiveMsg) bool
- func GetReadTime(t time.Time) string
- func InitSvc()
- func JudgeAdminUsers(s string) bool
- func JudgeGroup(s string) bool
- func JudgeOutgoingGroup(s string) bool
- func JudgeSensitiveWord(s string) bool
- func JudgeUsers(s string) bool
- func JudgeVipUsers(s string) bool
- func OnBotCallback(ctx context.Context, df *payload.DataFrame) (*payload.DataFrameResponse, error)
- func OnChatReceive(ctx context.Context, data *chatbot.BotCallbackDataModel) error
- func RunBotListener(clientId, clientSecret string)
- func RunEventListener(clientId, clientSecret string)
- func SolveSensitiveWord(s string) string
- func WriteToFile(path string, data []byte) error
Constants ¶
View Source
const DingTalkClientIdKeyName = "DingTalkClientId"
Variables ¶
View Source
var Config *config.Configuration
View Source
var DingTalkClientManager dingbot.DingTalkClientManagerInterface
View Source
var Prompt *[]config.Prompt
View Source
var UserService cache.UserServiceInterface
Functions ¶
func CheckRequest ¶
func FirstCheck ¶
func FirstCheck(rmsg *dingbot.ReceiveMsg) bool
func GetReadTime ¶
func JudgeOutgoingGroup ¶
JudgeOutgoingGroup 判断群ID是否在为outgoing白名单
func OnBotCallback ¶
func OnChatReceive ¶
func OnChatReceive(ctx context.Context, data *chatbot.BotCallbackDataModel) error
func RunBotListener ¶
func RunBotListener(clientId, clientSecret string)
func RunEventListener ¶
func RunEventListener(clientId, clientSecret string)
func WriteToFile ¶
将内容写入到文件,如果文件名带路径,则会判断路径是否存在,不存在则创建
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.