Documentation ¶
Index ¶
- func Destroy()
- func Init(baseUrl string, timeoutSec time.Duration)
- func MiniQr(wechatAppID string, secret string, path string) (string, error)
- func SendTemplateSubscribeMessage(wechatAppID string, appSecret string, toUser string, templateID string, ...) error
- type CreateUnifiedOrderResult
- type SendTemplateSubscribeMessageRequest
- type UnifiedOrderRequest
- type UnifiedOrderResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
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 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"` 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.