Versions in this module Expand all Collapse all v1 v1.2.2 Nov 28, 2022 Changes in this version + type AddressComponent struct + City string + District string + Nation string + Province string + Street string + StreetNumber string + type Location struct + Lat float64 + Lng float64 + type RespAddressToLocation struct + AddressComponents *AddressComponent + Location *Location + Title string + type RespLocationToAddress struct + Address string + AddressComponent *AddressComponent + type ResultTengxunMap struct + Message string + Result T + Status int + type TengxunMap struct + func NewTengxunMap(tokenKey string) *TengxunMap + func (t *TengxunMap) AddressToLocation(address string) (result *RespAddressToLocation, err error) + func (t *TengxunMap) LocationToAddress(latStr, lngStr string) (result *RespLocationToAddress, err error) v1.2.1 Nov 22, 2022 v1.2.0 Nov 7, 2022 v1.1.3 Nov 7, 2022 v1.1.2 Nov 7, 2022 v1.1.1 Nov 4, 2022 v1.1.0 Nov 4, 2022 v1.0.9 Nov 4, 2022 v1.0.8 Nov 4, 2022 v1.0.7 Nov 3, 2022 v1.0.6 Oct 31, 2022 Changes in this version + type AmountInfo struct + Currency string + Total int + type CateInfo struct + Id int + Name string + type CloudBase struct + Domain string + Env string + Path string + Query string + ResourceAppid string + type Cos struct + func NewCos(secretId, secretKey string) *Cos + func (cos *Cos) GetTempAuth(opts *CosTempAuthOption) (*CosTempAuth, error) + type CosTempAuth struct + Appid string + Bucket string + ExpiresTime int64 + Region string + TempSecretId string + TempSecretKey string + Token string + type CosTempAuthOption struct + AllowPrefix []string + Bucket string + Region string + type H5PayerInfo struct + ClientIp string + Description string + OutTradeNo string + Total int + type JsApiCallSign struct + Appid string + NonceStr string + Package string + PaySign string + SignType string + Timestamp string + type JsapiPayInfo struct + Description string + Openid string + OutTradeNo string + Total int64 + type JumpWxa struct + EnvVersion string + Path string + Query string + type LineColor struct + B string + G string + R string + type MpTemplateMsg struct + AppID string + Data string + Miniprogram string + TemplateID string + URL string + type MsgData struct + Value string + type MsgImage struct + MediaID string + type MsgLink struct + Description string + ThumbURL string + Title string + URL string + type MsgMiniProgramPage struct + PagePath string + ThumbMediaID string + Title string + type MsgText struct + Content string + type NativePayerOption struct + Description string + OutTradeNo string + Total int + type Payer struct + Openid string + type PhoneInfo struct + CountryCode string + PhoneNumber string + PurePhoneNumber string + Watermark *Watermark + type PubTemplateInfo struct + Example string + Kid int + Name string + Rule string + type RefundOption struct + OutRefundNo string + OutTradeNo string + Reason string + RefundFee int + TotalFee int + TransactionId string + type ReqCreateActivityIDOption struct + Openid string + Unionid string + type ReqDeleteTemplateOption struct + PriTmplId string + type ReqGenerateNFCSchemeOption struct + JumpWxa *JumpWxa + ModelId string + Sn string + type ReqGenerateSchemeOption struct + ExpireInterval int + ExpireTime int + ExpireType int + IsExpire bool + JumpWxa *JumpWxa + type ReqGenerateShortLinkOption struct + IsPermanent bool + PageTitle string + PageUrl string + type ReqGenerateUrlLinkOption struct + CloudBase *CloudBase + EnvVersion string + ExpireInterval int + ExpireTime int + ExpireType int + IsExpire bool + Path string + Query string + type ReqGetPhoneNumberOption struct + Code string + type ReqGetQRCodeOption struct + AutoColor bool + IsHyaline bool + LineColor *LineColor + Path string + Width int + type ReqGetQRCodeUnlimitedOption struct + AuthColor bool + CheckPath string + EnvVersion string + IsHyaline bool + LineColor *LineColor + Page string + Scene string + Width int + type ReqGetTempMediaOption struct + MediaID string + type ReqGetUserEncryptKeyOption struct + Openid string + SigMethod string + Signature string + type ReqJsapiOption struct + Amount *AmountInfo + Appid string + Attach string + Description string + Mchid string + NotifyUrl string + OutTradeNo string + Payer *Payer + SceneInfo *SceneInfo + SupportFapiao bool + TimeExpire string + type ReqRefundInfo struct + Amount *refundAmountInfo + NotifyUrl string + OutRefundNo string + OutTradeNo string + Reason string + TransactionId string + type ReqScanPayXml struct + Appid string + AuthCode string + Body string + MchId string + NonceStr string + OutTradeNo string + Sign string + SpbillCreateIp string + TotalFee int + XMLName xml.Name + func (req *ReqScanPayXml) BuildSign(mchKey string) + type ReqSendCustomerMessageOption struct + Image *MsgImage + Link *MsgLink + MsgMiniProgramPage *MsgMiniProgramPage + MsgType string + Text *MsgText + ToUser string + type ReqSendMessageOption struct + Data map[string]MsgData + Lang string + MiniprogramState string + Page string + TemplateId string + Touser string + type ReqSendUniformMessageOption struct + MPTemplateMsg *MpTemplateMsg + ToUser string + WeappTemplateMsg *WeappTemplateMsg + type ReqSetUpdatableMsgOption struct + ActivityId string + TargetState int + TemplateInfo *TemplateInfo + type ReqTransferToBalanceInfo struct + Amount int64 + CheckName string + Desc string + IsCheckName bool + MchAppid string + Mchid string + NonceStr string + Openid string + PartnerTradeNo string + ReUserName string + Sign string + SpbillCreateIp string + func (p *ReqTransferToBalanceInfo) BuildSign(mchKey string) + type ReqUploadTempMediaOption struct + Media string + Type string + type RespCloseOrder struct + Code string + Message string + type RespCode2Session struct + Errcode int + Errmsg string + Openid string + SessionKey string + Unionid string + type RespCreateActivityID struct + ActivityId string + Errcode int + Errmsg string + ExpirationTime int64 + type RespDeleteTemplate struct + Errcode int + Errmsg string + type RespGenerateNFCScheme struct + Errcode int + Errmsg string + Openlink string + type RespGenerateScheme struct + Errcode int + Errmsg string + Openlink string + type RespGenerateShortLink struct + Errcode int + Errmsg string + Link string + type RespGenerateUrlLink struct + Errcode int + Errmsg string + UrlLink string + type RespGetCategory struct + Data []CateInfo + Errcode int + Errmsg string + type RespGetPhoneNumber struct + Errcode int + Errmsg string + type RespGetPubTemplateKeyWordsById struct + Data []PubTemplateInfo + Errcode int + Errmsg string + type RespGetQRCode struct + Buffer []byte + Errcode int + Errmsg string + type RespGetQRCodeUnlimited struct + Errcode int + Errmsg string + type RespGetTempMedia struct + Buffer []byte + Errcode int + Errmsg string + type RespGetUserEncryptKey struct + Errcode int + Errmsg string + KeyInfoList []*UserKeyInfo + type RespJsapi struct + Code string + Message string + PrepayId string + type RespOrderQuery struct + Amount *AmountInfo + Appid string + Attach string + BankType string + Code string + Mchid string + Message string + OutTradeNo string + Payer *Payer + SceneInfo *SceneInfo + SuccessTime string + TradeState string + TradeStateDesc string + TradeType string + TransactionId string + type RespQueryScheme struct + Errcode int + Errmsg string + SchemeInfo *SchemeInfo + SchemeQuota *SchemeQuota + type RespQueryUrlLink struct + Errcode int + Errmsg string + UrlLinkInfo *UrlLinkInfo + UrlLinkQuota *UrlLinkQuotaInfo + VisitOpenid string + type RespRefund struct + Amount *refundAmountInfo + Channel string + Code string + CreateTime string + Message string + OutRefundNo string + OutTradeNo string + RefundId string + Status string + SuccessTime string + TransactionId string + UserReceivedAccount string + type RespScancodePay struct + Appid string + Attach string + BankType string + CashFee int + CashFeeType string + DeviceInfo string + ErrCode string + ErrCodeDes string + FeeType string + IsSubscribe string + MchId string + NonceStr string + Openid string + OutTradeNo string + ResultCode string + ReturnCode string + ReturnMsg string + Sign string + TimeEnd string + TotalFee int + TradeType string + TransactionId string + XMLName xml.Name + type RespSendCustomerMessage struct + Errcode int + Errmsg string + type RespSendMessage struct + Errcode int + Errmsg string + type RespSendUniformMessage struct + Errcode int + Errmsg string + type RespSetUpdatableMsg struct + Errcode int + Errmsg string + type RespTokenInfo struct + AccessToken string + Errcode int + Errmsg string + ExpiresIn int64 + type RespUploadTempMedia struct + CreatedAt int64 + Errcode int + Errmsg string + MediaID string + Type string + type ScanPayerOption struct + AuthCode string + ClientIp string + Description string + OutTradeNo string + Total int + type SceneInfo struct + DeviceId string + H5Info *h5Info + PayerClientIp string + type SchemeInfo struct + Appid string + CreateType int + EnvVersion string + ExpireTime int + Path string + Query string + type SchemeQuota struct + LongTimeLimit int + LongTimeUsed int + type Sms struct + func NewSms(secretId, secretKey string) *Sms + func (s *Sms) BatchSendSms(phone []string, signName, templateCode string, templateParam []string) (bool, error) + func (s *Sms) GetClient() (*sms.Client, error) + func (s *Sms) SendSms(phone, signName, templateCode string, templateParam []string) (bool, error) + func (s *Sms) SetRegion(region string) + type StoreInfo struct + Address string + AreaCode string + Id string + Name string + type TemplateInfo struct + ParameterList []TemplateParameter + type TemplateParameter struct + Name string + Value string + type TengxunCloud struct + Cos *Cos + Sms *Sms + func NewTengxunCloud(opt TengxunCloudOption) *TengxunCloud + type TengxunCloudOption struct + SecretId string + SecretKey string + type TransferToBalanceOption struct + Amount int64 + ClientIp string + Desc string + IsCheckName bool + Openid string + RealName string + TransferNo string + type UrlLinkInfo struct + Appid string + CreateTime int + EnvVersion string + ExpireTime int + Path string + Query string + type UrlLinkQuotaInfo struct + LongTimeLimit int + LongTimeUsed int + type UserKeyInfo struct + CreateTime int64 + EncryptKey string + ExpireIn int64 + Iv string + Version string + type Watermark struct + AppID string + Timestamp int64 + type Weapp struct + func NewWeapp(appid, secret string) *Weapp + func (w *Weapp) CreateActivityId(opts *ReqCreateActivityIDOption) (*RespCreateActivityID, error) + func (w *Weapp) GenerateNFCScheme(opts *ReqGenerateNFCSchemeOption) (*RespGenerateNFCScheme, error) + func (w *Weapp) GenerateScheme(opts *ReqGenerateSchemeOption) (*RespGenerateScheme, error) + func (w *Weapp) GenerateShortLink(opts *ReqGenerateShortLinkOption) (string, error) + func (w *Weapp) GenerateUrlLink(opts *ReqGenerateUrlLinkOption) (string, error) + func (w *Weapp) GetCategory() (*RespGetCategory, error) + func (w *Weapp) GetPhoneNumber(opts *ReqGetPhoneNumberOption) (*RespGetPhoneNumber, error) + func (w *Weapp) GetPubTemplateKeyWordsById(tid string) (*RespGetPubTemplateKeyWordsById, error) + func (w *Weapp) GetQRCode(opts *ReqGetQRCodeOption) (*RespGetQRCode, error) + func (w *Weapp) GetTempMedia(opts *ReqGetTempMediaOption) (*RespGetTempMedia, error) + func (w *Weapp) GetToken() (string, error) + func (w *Weapp) GetUnlimitedQRCode(opts *ReqGetQRCodeUnlimitedOption) ([]byte, error) + func (w *Weapp) GetUserEncryptKey(opts *ReqGetUserEncryptKeyOption) (*RespGetUserEncryptKey, error) + func (w *Weapp) Jscode2session(jscode string) (*RespCode2Session, error) + func (w *Weapp) QueryScheme(scheme string) (*RespQueryScheme, error) + func (w *Weapp) QueryUrlLink(urlLink string) (*RespQueryUrlLink, error) + func (w *Weapp) SendCustomMessage(opts *ReqSendCustomerMessageOption) (*RespSendCustomerMessage, error) + func (w *Weapp) SendMessage(opts *ReqSendMessageOption) (*RespSendMessage, error) + func (w *Weapp) SendUniformMessage(opts *ReqSendUniformMessageOption) (*RespSendUniformMessage, error) + func (w *Weapp) SetUpdatableMsg(opts *ReqSetUpdatableMsgOption) (*RespSetUpdatableMsg, error) + func (w *Weapp) UploadTempMedia(opts *ReqUploadTempMediaOption) (*RespUploadTempMedia, error) + type WeappTemplateMsg struct + Data string + EmphasisKeyword string + FormID string + Page string + TemplateID string + type WechatOption struct + Appid string + CertPem string + CertSerialNo string + KeyPem string + MchId string + MchKey string + NotifyUrl string + type WechatPay struct + V2 *WechatPayV2 + V3 *WechatPayV3 + func NewWechatPay(opts WechatOption) *WechatPay + type WechatPayV2 struct + func NewWechatPayV2(opts WechatOption) *WechatPayV2 + func (p *WechatPayV2) TransferToBalance(transferInfo *TransferToBalanceOption) error + func (w *WechatPayV2) ScancodePay(payInfo *ScanPayerOption) (*RespScancodePay, error) + type WechatPayV3 struct + Client *core.Client + func NewWechatPayV3(opts WechatOption) *WechatPayV3 + func (w *WechatPayV3) CloseOrder(outTradeNo string) error + func (w *WechatPayV3) H5Pay(payInfo H5PayerInfo) (string, error) + func (w *WechatPayV3) Jsapi(payInfo *JsapiPayInfo) (*JsApiCallSign, error) + func (w *WechatPayV3) NativePay(payInfo *NativePayerOption) (string, error) + func (w *WechatPayV3) QueryOrderByOutTradeNo(outTradeNo string) (*RespOrderQuery, error) + func (w *WechatPayV3) QueryOrderByTransactionId(transactionId string) (*RespOrderQuery, error) + func (w *WechatPayV3) QueryRefundOrder(outRefundNo string) (*RespRefund, error) + func (w *WechatPayV3) Refund(opts *RefundOption) (*RespRefund, error) + type Wxmp struct