package
Version:
v0.0.0-...-9117acc
Opens a new window with list of versions in this module.
Published: Dec 21, 2022
License: Unlicense
Opens a new window with license information.
Imports: 9
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
type AccessToken struct {
AccessToken string `json:"access_token"`
ExpiresIn int `json:"expires_in"`
Err
ExpiresInTime time.Time
}
AccessToken 微信企业号请求Token
Client 微信企业号应用配置信息
func (c *Client) GetAccessToken()
GetAccessToken 获取回话token
type Content struct {
Content string `json:"content"`
}
Content 文本消息内容
type Err struct {
ErrCode int `json:"errcode"`
ErrMsg string `json:"errmsg"`
}
Err 微信返回错误
type Message struct {
ToUser string `json:"touser"`
ToParty string `json:"toparty"`
ToTag string `json:"totag"`
MsgType string `json:"msgtype"`
AgentID int `json:"agentid"`
Text Content `json:"text"`
}
Message 消息主体参数
type Result struct {
Err
InvalidUser string `json:"invaliduser"`
InvalidParty string `json:"infvalidparty"`
InvalidTag string `json:"invalidtag"`
}
Result 发送消息返回结果
Source Files
¶
Click to show internal directories.
Click to hide internal directories.