Documentation ¶
Index ¶
- func Init(config *Config) (err error)
- func NewDingDing(dingDingApiAddress, dingDingAccessToken, dingDingSecret string) *dingDingAuth
- func NewQyWeiXin(qyweixinSecret, qyweixinCorpId, qyweixinApiAddress string) *qyWeiXin
- type Config
- type DingDingAt
- type DingDingLink
- type DingDingMarkdown
- type DingDingMessageBase
- type DingDingMessageLink
- type DingDingMessageMarkdown
- type DingDingMessageText
- type DingDingText
- type MailConfig
- type QyWeiXinAccessTokenStruct
- type QyWeiXinDepartmentMemberList
- type QyWeiXinGetDepartmentMembersResponse
- type QyWeiXinSendMessageContent
- type QyWeiXinSendMessageMarkdownStruct
- type QyWeiXinSendMessageResponse
- type QyWeiXinSendMessageStruct
- type QyWeiXinSendMessageTextStruct
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewDingDing ¶
func NewDingDing(dingDingApiAddress, dingDingAccessToken, dingDingSecret string) *dingDingAuth
func NewQyWeiXin ¶
func NewQyWeiXin(qyweixinSecret, qyweixinCorpId, qyweixinApiAddress string) *qyWeiXin
Types ¶
type DingDingAt ¶
type DingDingLink ¶
type DingDingMarkdown ¶
type DingDingMessageBase ¶
type DingDingMessageBase struct { At DingDingAt `json:"at"` Msgtype string `json:"msgtype"` }
type DingDingMessageLink ¶
type DingDingMessageLink struct { DingDingMessageBase Link DingDingLink `json:"link"` }
type DingDingMessageMarkdown ¶
type DingDingMessageMarkdown struct { DingDingMessageBase Markdown DingDingMarkdown `json:"markdown"` }
type DingDingMessageText ¶
type DingDingMessageText struct { DingDingMessageBase Text DingDingText `json:"text"` }
type DingDingText ¶
type DingDingText struct {
Content string `json:"content"`
}
type MailConfig ¶
type MailConfig struct { MailUser string `json:"mailUser"` MailPasswd string `json:"mailPasswd"` MailHost string `json:"mailHost"` MailPort string `json:"mailPort"` MailUserAlias string `json:"mailUserAlias"` MailSetCharset string `json:"mailSetCharset"` MailBodyContentType string `json:"mailBodyContentType"` }
type QyWeiXinGetDepartmentMembersResponse ¶
type QyWeiXinGetDepartmentMembersResponse struct { ErrorCode int64 `json:"errcode"` ErrMsg string `json:"errmsg"` UserList []QyWeiXinDepartmentMemberList `json:"userlist"` }
type QyWeiXinSendMessageContent ¶
type QyWeiXinSendMessageContent struct {
Content string `json:"content"`
}
type QyWeiXinSendMessageMarkdownStruct ¶
type QyWeiXinSendMessageMarkdownStruct struct { QyWeiXinSendMessageStruct Markdown QyWeiXinSendMessageContent `json:"markdown"` }
type QyWeiXinSendMessageStruct ¶
type QyWeiXinSendMessageStruct struct { ToUser string `json:"touser"` ToParty string `json:"toparty"` ToTag string `json:"totag"` MsgType string `json:"msgtype"` AgentId int `json:"agentid"` Safe int `json:"safe"` EnableIdTrans int `json:"enable_id_trans"` EnableDuplicateCheck int `json:"enable_duplicate_check"` DuplicateCheckInterval int `json:"duplicate_check_interval"` }
type QyWeiXinSendMessageTextStruct ¶
type QyWeiXinSendMessageTextStruct struct { QyWeiXinSendMessageStruct Text QyWeiXinSendMessageContent `json:"text"` }
Click to show internal directories.
Click to hide internal directories.