Documentation
¶
Index ¶
- Constants
- func InitContactClient(conf WxeConfig, redisConfig *redis.RedisConf) *work.Work
- func InitCustomAppClient(conf WxeConfig, redisConfig *redis.RedisConf) *work.Work
- func ParseEventContent[T any](sourceContent []byte) (*T, error)
- type AddExternalContactContent
- type BaseEventContent
- type DelFollowUserContent
- type WxeConfig
Constants ¶
View Source
const ( ResultSuccess = "0" ResultErrCodeSuccess = 0 )
微信接口响应码
View Source
const ( CallbackError = "error" CallbackSuccess = "success" )
Variables ¶
This section is empty.
Functions ¶
func InitContactClient ¶
InitContactClient 初始化企业微信通讯录管理客户端
func InitCustomAppClient ¶
InitCustomAppClient 初始化企业微信自建应用客户端
func ParseEventContent ¶
Types ¶
type AddExternalContactContent ¶
type AddExternalContactContent struct {
BaseEventContent
State string `xml:"State"`
WelcomeCode string `xml:"WelcomeCode"`
}
type BaseEventContent ¶
type BaseEventContent struct {
ToUserName string `xml:"ToUserName"`
FromUserName string `xml:"FromUserName"`
CreateTime int64 `xml:"CreateTime"`
MsgType string `xml:"MsgType"`
Event string `xml:"Event"`
ChangeType string `xml:"ChangeType"`
UserID string `xml:"UserID"`
ExternalUserID string `xml:"ExternalUserID"`
}
type DelFollowUserContent ¶
type DelFollowUserContent struct {
BaseEventContent
}
Click to show internal directories.
Click to hide internal directories.