Documentation ¶
Index ¶
- func Destroy()
- func GetAccessToken(appID string, appSecret string) (string, error)
- func GetUserPhone(appID string, appSecret string, code string) (string, error)
- func Init(baseUrl string, timeoutSec time.Duration)
- func LoginWeb(appID, appSecret, code string) (string, string, error)
- func MiniQr(wechatAppID string, secret string, path string) (string, error)
- func MsgSecCheck(wechatAppID string, appSecret string, content string, scene int, openID string) ([]MsgSecCheckDetail, *MsgSecCheckTotal, error)
- func Notified(tradeID string, msg string) error
- func SendMpMsg(wechatAppID, appSecret, toUser, miniAppID, page, templateID string, ...) error
- func SendSubscribeMessage(appID string, appSecret string, msg string) error
- func SendTemplateSubscribeMessage(wechatAppID string, appSecret string, toUser string, templateID string, ...) error
- type CreateUnifiedOrderResult
- type GetAccessTokenResponse
- type GetUserFollowOfficialAccountListResponse
- type GetUserFollowOfficialAccountListResult
- type GetUserOfficialAccountInfoResponse
- type GetUserOfficialAccountInfoResult
- type LoginInfo
- type LoginResponse
- type LoginWebRequest
- type LoginWebResponse
- type MsgSecCheckDetail
- type MsgSecCheckRequest
- type MsgSecCheckResponse
- type MsgSecCheckTotal
- type NotifiedRequest
- type SendMpMessageRequest
- type SendTemplateSubscribeMessageRequest
- type UnifiedOrderRequest
- type UnifiedOrderResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Destroy ¶
func Destroy()
func GetAccessToken ¶ added in v0.1.2
func GetUserPhone ¶ added in v0.8.5
func LoginWeb ¶ added in v0.9.6
func MsgSecCheck ¶ added in v0.7.0
func MsgSecCheck(wechatAppID string, appSecret string, content string, scene int, openID string) ([]MsgSecCheckDetail, *MsgSecCheckTotal, error)
func SendMpMsg ¶ added in v0.9.40
func SendSubscribeMessage ¶ added in v0.8.5
Types ¶
type CreateUnifiedOrderResult ¶
type CreateUnifiedOrderResult struct { TimeStamp string `json:"timeStamp"` Nonce string `json:"nonce"` Package string `json:"package"` SignType string `json:"signType"` PaySign string `json:"paySign"` }
func UnifiedOrder ¶
func UnifiedOrder(params UnifiedOrderRequest) (*CreateUnifiedOrderResult, error)
type GetAccessTokenResponse ¶ added in v0.1.2
type GetAccessTokenResponse struct { AccessToken string `json:"access_token"` // contains filtered or unexported fields }
type GetUserFollowOfficialAccountListResponse ¶ added in v0.8.5
type GetUserFollowOfficialAccountListResponse struct { GetUserFollowOfficialAccountListResult // contains filtered or unexported fields }
type GetUserFollowOfficialAccountListResult ¶ added in v0.8.5
type GetUserOfficialAccountInfoResponse ¶ added in v0.8.5
type GetUserOfficialAccountInfoResponse struct { GetUserOfficialAccountInfoResult // contains filtered or unexported fields }
type GetUserOfficialAccountInfoResult ¶ added in v0.8.5
type LoginInfo ¶ added in v0.8.5
type LoginResponse ¶ added in v0.8.5
type LoginWebRequest ¶ added in v0.9.6
type LoginWebResponse ¶ added in v0.9.6
type MsgSecCheckDetail ¶ added in v0.7.0
type MsgSecCheckRequest ¶ added in v0.7.0
type MsgSecCheckResponse ¶ added in v0.7.0
type MsgSecCheckResponse struct { Detail []MsgSecCheckDetail Result MsgSecCheckTotal // contains filtered or unexported fields }
type MsgSecCheckTotal ¶ added in v0.7.0
type NotifiedRequest ¶ added in v0.7.0
type SendMpMessageRequest ¶ added in v0.9.47
type SendMpMessageRequest struct { AppID string `json:"appId" binding:"required"` AppSecret string `json:"appSecret" binding:"required"` MiniProgramAppID string `json:"miniProgramAppId"` ToUser string `json:"touser" binding:"required"` Page string `json:"pagepath"` TemplateID string `json:"templateId" binding:"required"` Data map[string]interface{} `json:"data" binding:"required"` }
type SendTemplateSubscribeMessageRequest ¶
type SendTemplateSubscribeMessageRequest struct { AppID string `json:"appId" binding:"required"` AppSecret string `json:"appSecret" binding:"required"` ToUser string `json:"touser" binding:"required"` TemplateID string `json:"templateId" binding:"required"` Page string `json:"page"` Data map[string]interface{} `json:"data" binding:"required"` }
type UnifiedOrderRequest ¶
type UnifiedOrderRequest struct { OpenID string `json:"openId"` AppID string `json:"appId"` MchID string `json:"mchId"` MchKey string `json:"mchKey"` Body string `json:"body"` OutTradeNo string `json:"outTradeNo"` TotalFee int `json:"totalFee"` TerminalIP string `json:"terminalIP"` NotifyUrl string `json:"notifyUrl"` }
Click to show internal directories.
Click to hide internal directories.