Versions in this module Expand all Collapse all v0 v0.1.7 Jan 7, 2025 Changes in this version + const BotMsgTypeMarkdown + const BotMsgTypeText + const ErrMsgNotify + const ErrReqNotify + type BotMsgContent struct + Markdown *Content + MsgType string + Text *Content + type Content struct + Content string + type CustomerImage struct + Endpoint string + Path string + type CustomerImageResp struct + MediaID string + type CustomerMsg struct + MsgType string + ToUser string + type CustomerMsgImage struct + Image MsgImage + type CustomerMsgLink struct + Link MsgLink + type CustomerMsgText struct + Text Content + type EnterpriseGroupMsg struct + ChatID string + MsgType string + Safe int + Text Content + type EnterpriseMsg struct + Endpoint string + type IServiceWechatNotify interface + PostGroupBotMsg func(req *ReqBotMsg) error + type MPMsgTemplate struct + Data interface{} + FormID string + TemplateID string + Touser string + type MPSubscribeMsg struct + Endpoint string + type MiniProgram struct + AppID string + Page string + type MsgCustomer struct + Msgtype string + Text string + Touser string + type MsgImage struct + MediaID string + type MsgLink struct + Desc string + ThumbUrl string + Title string + Url string + type MsgResp struct + Errcode int + Errmsg string + type MsgRespImage struct + MediaID string + type MsgTemplate struct + Data interface{} + EmphasisKeyword string + FormID string + MiniProgram MiniProgram + TemplateID string + Touser string + Url string + type ReqBotMsg struct + BotKey string + type ReqCustomerMsg struct + Body interface{} + Endpoint string + type TemplateMsg struct + Endpoint string + type TemplateValue struct + Value string + type TokenResp struct + AccessToken string + Errcode int + Errmsg string + ExpiresIn int v0.1.6 Mar 27, 2023 Changes in this version + const Aliyun + const Huawei + const IMGoEasy + const RongCloud + const ServiceEmail + const ServiceIM + const ServiceSMS + const ServiceWechatNotify + const Twilio + type BaseIMProvider struct + func (s *BaseIMProvider) GetEndpoint() *IMEndpoint + func (s *BaseIMProvider) GetHostByRegion(code string) string + func (s *BaseIMProvider) Init(endpoint *IMEndpoint) error + func (s *BaseIMProvider) PostMessage(msg *IMMessage) error + type BaseSMSProvider struct + Endpoints map[string]Endpoint + func (s *BaseSMSProvider) AddEndpoint(name string, endpoint Endpoint) + func (s *BaseSMSProvider) GetEndpoint(name string) (*Endpoint, error) + func (s *BaseSMSProvider) Init() + type Endpoint struct + AppKey string + AppSecret string + HostNum string + Provider string + Region string + SignName string + TemplateCode string + type IIMProvider interface + GetEndpoint func() *IMEndpoint + GetHostByRegion func(code string) string + Init func(endpoint *IMEndpoint) error + PostMessage func(msg *IMMessage) error + type IMEndpoint struct + AppKey string + Hosts []string + Provider string + type IMMessage struct + Channel string + Content string + Host string + type ISMSProvider interface + AddEndpoint func(name string, endpoint Endpoint) + GetEndpoint func(name string) (*Endpoint, error) + Init func() + Send func(req *ReqSMS) error + type IServiceEmail interface + Send func(req *ReqEmail) error + type IServiceIM interface + GetHostByRegion func(providerName string, code string) (string, error) + PostMessage func(providerName string, msg *IMMessage) error + type IServiceSMS interface + Send func(req *ReqSMS) error + type ReqEmail struct + Body string + Endpoint string + MailTo []string + Subject string + type ReqSMS struct + Content map[string]string + Endpoint string + Mobile string + Provider string