Documentation ¶
Index ¶
- func WechatConfigInitSet(initSet WechatConfigInit)
- type Callback
- type Resource
- type Response
- type WechatClient
- type WechatConfigInit
- type WechatService
- func (s *WechatService) ApiclientKey() (string, error)
- func (s *WechatService) CommonWechat() *commonWechat.Wechat
- func (s *WechatService) DecryptToString(resource *Resource) (certificate string, err error)
- func (s *WechatService) OfficialAccount() *officialaccount.OfficialAccount
- func (s *WechatService) V2Client() (*wechat.Client, error)
- func (s *WechatService) V3Client() (*wechat3.ClientV3, error)
- type WehcatConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func WechatConfigInitSet ¶ added in v1.0.13
func WechatConfigInitSet(initSet WechatConfigInit)
Types ¶
type Response ¶
type Response struct { Mchid string `json:"mchid"` Appid string `json:"appid"` OutTradeNo string `json:"out_trade_no"` TransactionId string `json:"transaction_id"` TradeType string `json:"trade_type"` TradeState string `json:"trade_state"` TradeStateDesc string `json:"trade_state_desc"` BankType string `json:"bank_type"` Attach string `json:"attach"` SuccessTime time.Time `json:"success_time"` Payer struct { Openid string `json:"openid"` } `json:"payer"` Amount struct { Total int `json:"total"` PayerTotal int `json:"payer_total"` Currency string `json:"currency"` PayerCurrency string `json:"payer_currency"` } `json:"amount"` }
type WechatClient ¶
type WechatClient interface { V3Client() (*wechat3.ClientV3, error) CommonWechat() *commonWechat.Wechat V2Client() (*wechat.Client, error) OfficialAccount() *officialaccount.OfficialAccount DecryptToString(resource *Resource) (certificate string, err error) }
type WechatConfigInit ¶ added in v1.0.13
type WechatConfigInit func() *WehcatConfig
type WechatService ¶
type WechatService struct {
WehcatConfig *WehcatConfig
}
func (*WechatService) ApiclientKey ¶
func (s *WechatService) ApiclientKey() (string, error)
func (*WechatService) CommonWechat ¶
func (s *WechatService) CommonWechat() *commonWechat.Wechat
func (*WechatService) DecryptToString ¶
func (s *WechatService) DecryptToString(resource *Resource) (certificate string, err error)
func (*WechatService) OfficialAccount ¶
func (s *WechatService) OfficialAccount() *officialaccount.OfficialAccount
type WehcatConfig ¶
type WehcatConfig struct { AppId string Appkey string MchId string SerialNo string ApiKey3 string ApiclientKeyPath string ApiclientCerPath string NotifyUrl string IsProd bool ApiclientCer12Path string }
func WechatConfig ¶
func WechatConfig() *WehcatConfig
Click to show internal directories.
Click to hide internal directories.