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 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 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 MsgSecCheckDetail
- type MsgSecCheckRequest
- type MsgSecCheckResponse
- type MsgSecCheckTotal
- type NotifiedRequest
- type SendTemplateSubscribeMessageRequest
- type UnifiedOrderRequest
- type UnifiedOrderResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetAccessToken ¶ added in v0.1.2
func GetUserPhone ¶ added in v0.8.5
func MsgSecCheck ¶ added in v0.7.0
func MsgSecCheck(wechatAppID string, appSecret string, content string, scene int, openID string) ([]MsgSecCheckDetail, *MsgSecCheckTotal, error)
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 GetUserFollowOfficialAccountListResult struct { Total int64 `json:"total"` Count int64 `json:"count"` Openid []string `json:"openid"` NextOpenid string `json:"next_openid"` }
func GetUserFollowOfficialAccountList ¶ added in v0.8.5
func GetUserFollowOfficialAccountList(appID string, appSecret string, nextOpenid string) (*GetUserFollowOfficialAccountListResult, error)
type GetUserOfficialAccountInfoResponse ¶ added in v0.8.5
type GetUserOfficialAccountInfoResponse struct { GetUserOfficialAccountInfoResult // contains filtered or unexported fields }
type GetUserOfficialAccountInfoResult ¶ added in v0.8.5
type GetUserOfficialAccountInfoResult struct { Subscribe int `json:"subscribe"` Openid string `json:"openid"` SubscribeTime string `json:"subscribeTime"` UnionID string `json:"unionID"` Remark string `json:"remark"` SubscribeScene string `json:"subscribeScene"` }
func GetUserOfficialAccountInfo ¶ added in v0.8.5
func GetUserOfficialAccountInfo(appID string, appSecret string, openid string) (*GetUserOfficialAccountInfoResult, error)
type LoginResponse ¶ added in v0.8.5
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 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.