Documentation
¶
Overview ¶
*
- Created by GoLand.
- User: 姜伟
- Date: 2019/12/27 0027
- Time: 19:48
*
- Created by GoLand.
- User: 姜伟
- Date: 2019/12/25 0025
- Time: 10:42
*
- Created by GoLand.
- User: 姜伟
- Date: 2019/12/31 0031
- Time: 0:38
*
- Created by GoLand.
- User: 姜伟
- Date: 2020/1/5 0005
- Time: 0:18
*
- Created by GoLand.
- User: 姜伟
- Date: 2020/1/5 0005
- Time: 0:18
*
- Created by GoLand.
- User: 姜伟
- Date: 2020/1/5 0005
- Time: 0:17
*
- Created by GoLand.
- User: 姜伟
- Date: 2020/1/5 0005
- Time: 0:17
*
- Created by GoLand.
- User: 姜伟
- Date: 2019/12/25 0025
- Time: 10:42
*
- Created by GoLand.
- User: 姜伟
- Date: 2020/1/2 0002
- Time: 13:09
*
- Created by GoLand.
- User: 姜伟
- Date: 2020/1/2 0002
- Time: 13:11
*
- Created by GoLand.
- User: 姜伟
- Date: 2020/1/2 0002
- Time: 13:10
*
- Created by GoLand.
- User: 姜伟
- Date: 2020/1/2 0002
- Time: 13:10
*
- Created by GoLand.
- User: 姜伟
- Date: 2020/1/2 0002
- Time: 13:11
*
- Created by GoLand.
- User: 姜伟
- Date: 2020/1/2 0002
- Time: 13:09
Index ¶
- Constants
- func LoadConfig(outer IWxConfig)
- func LoadUtil(outer IWxOuter)
- func NewConfig() *configWx
- func NewConfigAccount() *configAccount
- func NewConfigCorp() *configCorp
- func NewSingleCardAddConfig(appId string) *singleCardAddConfig
- func NewSingleCardConfig(appId string) *singleCardConfig
- func NewSingleJsConfig(appId string) *singleJsConfig
- func NewSingleJsPayConfig(appId string) *singleJsPayConfig
- func NewUtilWx() *utilWx
- type BaseWxAccount
- type BaseWxCorp
- type BaseWxMini
- type BaseWxOpen
- type BaseWxProvider
- type BaseWxSingle
- type DataOpenAuthorize
- type DataProviderAuthorize
- type IWxConfig
- type IWxOuter
- type WxCDATAText
- type WxNotifyOpen
- type WxResponse
Constants ¶
View Source
const ( // 公众号或小程序缓存类型 SingleCacheTypeAccessToken = "single_accesstoken" SingleCacheTypeJsTicket = "single_jsticket" SingleCacheTypeCardTicket = "single_cardticket" SingleCacheTypeOpenAccessToken = "open_accesstoken" SingleCacheTypeOpenJsTicket = "open_jsticket" SingleCacheTypeOpenCardTicket = "open_cardticket" // 企业号缓存类型 CorpCacheTypeAccessToken = "corp_accesstoken" CorpCacheTypeJsTicket = "corp_jsticket" CorpCacheTypeProviderAccessToken = "provider_accesstoken" CorpCacheTypeProviderJsTicket = "provider_jsticket" AccountMerchantTypeSelf = "self" // 自身 AccountMerchantTypeSub = "sub" // 子商户 )
Variables ¶
This section is empty.
Functions ¶
func LoadConfig ¶
func LoadConfig(outer IWxConfig)
func NewConfigAccount ¶
func NewConfigAccount() *configAccount
func NewConfigCorp ¶
func NewConfigCorp() *configCorp
func NewSingleCardAddConfig ¶
func NewSingleCardAddConfig(appId string) *singleCardAddConfig
func NewSingleCardConfig ¶
func NewSingleCardConfig(appId string) *singleCardConfig
func NewSingleJsConfig ¶
func NewSingleJsConfig(appId string) *singleJsConfig
func NewSingleJsPayConfig ¶
func NewSingleJsPayConfig(appId string) *singleJsPayConfig
Types ¶
type BaseWxAccount ¶
type BaseWxAccount struct {
// contains filtered or unexported fields
}
func NewBaseWxAccount ¶
func NewBaseWxAccount() BaseWxAccount
func (*BaseWxAccount) GetRequest ¶
func (*BaseWxAccount) SetPayAccount ¶
func (wa *BaseWxAccount) SetPayAccount(accountConfig *configAccount, merchantType string)
type BaseWxCorp ¶
type BaseWxCorp struct {
// contains filtered or unexported fields
}
func NewBaseWxCorp ¶
func NewBaseWxCorp() BaseWxCorp
type BaseWxMini ¶
type BaseWxMini struct {
// contains filtered or unexported fields
}
func NewBaseWxMini ¶
func NewBaseWxMini() BaseWxMini
type BaseWxOpen ¶
type BaseWxOpen struct {
// contains filtered or unexported fields
}
func NewBaseWxOpen ¶
func NewBaseWxOpen() BaseWxOpen
type BaseWxProvider ¶
type BaseWxProvider struct {
// contains filtered or unexported fields
}
func NewBaseWxProvider ¶
func NewBaseWxProvider() BaseWxProvider
type BaseWxSingle ¶
type BaseWxSingle struct {
// contains filtered or unexported fields
}
func NewBaseWxSingle ¶
func NewBaseWxSingle() BaseWxSingle
type DataOpenAuthorize ¶
func NewDataOpenAuthorize ¶
func NewDataOpenAuthorize() *DataOpenAuthorize
type DataProviderAuthorize ¶
func NewDataProviderAuthorize ¶
func NewDataProviderAuthorize() *DataProviderAuthorize
type IWxOuter ¶
type IWxOuter interface { GetOpenAuthorizeInfo(appId string) *DataOpenAuthorize RefreshOpenAuthorizeInfo(appId string, operateType int, data map[string]interface{}) GetProviderAuthorizeInfo(corpId string) *DataProviderAuthorize RefreshProviderAuthorizeInfo(corpId string, operateType int, data map[string]interface{}) }
type WxCDATAText ¶
type WxCDATAText struct {
Text string `xml:",innerxml"`
}
type WxNotifyOpen ¶
type WxResponse ¶
type WxResponse struct { XMLName xml.Name `xml:"xml"` Encrypt WxCDATAText MsgSignature WxCDATAText TimeStamp string Nonce WxCDATAText }
Source Files
¶
Directories
¶
Path | Synopsis |
---|---|
* * Created by GoLand.
|
* * Created by GoLand. |
authorize
* * Created by GoLand.
|
* * Created by GoLand. |
customservice
* * Created by GoLand.
|
* * Created by GoLand. |
datacube
* * Created by GoLand.
|
* * Created by GoLand. |
material
* * Created by GoLand.
|
* * Created by GoLand. |
menu
* * Created by GoLand.
|
* * Created by GoLand. |
merchant/category
* * Created by GoLand.
|
* * Created by GoLand. |
merchant/express
* * Created by GoLand.
|
* * Created by GoLand. |
merchant/group
* * Created by GoLand.
|
* * Created by GoLand. |
merchant/media
* * Created by GoLand.
|
* * Created by GoLand. |
merchant/order
* * Created by GoLand.
|
* * Created by GoLand. |
merchant/product
* * Created by GoLand.
|
* * Created by GoLand. |
merchant/shelf
* * Created by GoLand.
|
* * Created by GoLand. |
merchant/stock
* * Created by GoLand.
|
* * Created by GoLand. |
message
* * Created by GoLand.
|
* * Created by GoLand. |
tool
* * Created by GoLand.
|
* * Created by GoLand. |
user
* * Created by GoLand.
|
* * Created by GoLand. |
* * Created by GoLand.
|
* * Created by GoLand. |
agent
* * Created by GoLand.
|
* * Created by GoLand. |
authorize
* * Created by GoLand.
|
* * Created by GoLand. |
batch
* * Created by GoLand.
|
* * Created by GoLand. |
crm
* * Created by GoLand.
|
* * Created by GoLand. |
department
* * Created by GoLand.
|
* * Created by GoLand. |
invoice
* * Created by GoLand.
|
* * Created by GoLand. |
media
* * Created by GoLand.
|
* * Created by GoLand. |
message
* * Created by GoLand.
|
* * Created by GoLand. |
oa
* * Created by GoLand.
|
* * Created by GoLand. |
pay
* * Created by GoLand.
|
* * Created by GoLand. |
tag
* * Created by GoLand.
|
* * Created by GoLand. |
user
* * Created by GoLand.
|
* * Created by GoLand. |
* * Created by GoLand.
|
* * Created by GoLand. |
authorize
* * Created by GoLand.
|
* * Created by GoLand. |
message
* * Created by GoLand.
|
* * Created by GoLand. |
tool
* * Created by GoLand.
|
* * Created by GoLand. |
open
|
|
account/register
* * Created by GoLand.
|
* * Created by GoLand. |
common/authorize
* * Created by GoLand.
|
* * Created by GoLand. |
common/tool
* * Created by GoLand.
|
* * Created by GoLand. |
mini/account
* * Created by GoLand.
|
* * Created by GoLand. |
mini/category
* * Created by GoLand.
|
* * Created by GoLand. |
mini/cloud
* * Created by GoLand.
|
* * Created by GoLand. |
mini/codemanager
* * Created by GoLand.
|
* * Created by GoLand. |
mini/codetemplate
* * Created by GoLand.
|
* * Created by GoLand. |
mini/setting
* * Created by GoLand.
|
* * Created by GoLand. |
provider
|
|
agent
* * Created by GoLand.
|
* * Created by GoLand. |
authorize
* * Created by GoLand.
|
* * Created by GoLand. |
constact
* * Created by GoLand.
|
* * Created by GoLand. |
service
* * Created by GoLand.
|
* * Created by GoLand. |
* * Created by GoLand.
|
* * Created by GoLand. |
media
* * Created by GoLand.
|
* * Created by GoLand. |
pay
* * Created by GoLand.
|
* * Created by GoLand. |
pay/company
* * Created by GoLand.
|
* * Created by GoLand. |
pay/profitsharing
* * Created by GoLand.
|
* * Created by GoLand. |
pay/redpack
* * Created by GoLand.
|
* * Created by GoLand. |
Click to show internal directories.
Click to hide internal directories.