module

package
v1.1.8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 22, 2021 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var AdEntity = Ad{}
View Source
var AuthEntity = Auth{}
View Source
var CloudbaseEntity = Cloudbase{}
View Source
var CustomerServiceMessageEntity = CustomerServiceMessage{}
View Source
var DataAnalysisEntity = DataAnalysis{}
View Source
var DecodedDataEntity = DecodedData{}
View Source
var ImgEntity = Img{}
View Source
var LivebroadcastEntity = Livebroadcast{}
View Source
var NearbyPoiEntity = NearbyPoi{}
View Source
var OcrEntity = Ocr{}
View Source
var OperationEntity = Operation{}
View Source
var PluginManagementEntity = PluginManagement{}
View Source
var SafetyControlCapabilityEntity = SafetyControlCapability{}
View Source
var SearchEntity = Search{}
View Source
var SecCheckEntity = SecCheck{}
View Source
var ServiceMarketEntity = ServiceMarket{}
View Source
var SoterEntity = Soter{}
View Source
var SubscribeMessageEntity = SubscribeMessage{}
View Source
var TemplateMessageEntity = TemplateMessage{}
View Source
var UniformMessageEntity = UniformMessage{}
View Source
var UpdatableMessageEntity = UpdatableMessage{}
View Source
var UrlLinkEntity = UrlLink{}
View Source
var UrlSchemeEntity = UrlScheme{}
View Source
var WxacodeEntity = Wxacode{}

Functions

func PKCS7UnPadding

func PKCS7UnPadding(plantText []byte) []byte

PKCS7UnPadding return unpadding []Byte plantText

Types

type Acode

type Acode struct {
	Scene     string      `json:"scene,omitempty"`
	Page      string      `json:"page,omitempty"`
	Width     int         `json:"width,omitempty"`
	AutoColor bool        `json:"auto_color,omitempty"`
	LineColor interface{} `json:"line_color,omitempty"`
	IsHyaline bool        `json:"is_hyaline,omitempty"`
}

line_color Object {"r":0,"g":0,"b":0}

type Ad struct {
	App utils.App
}

func (*Ad) Init

func (a *Ad) Init(app utils.App) *Ad

type Auth

type Auth struct {
	App utils.App
}

func (*Auth) Code2Session

func (a *Auth) Code2Session(code string) (User, error)

Code2Session 登录凭证校验。通过 wx.login 接口获得临时登录凭证 code 后传到开发者服务器调用此接口完成登录流程。更多使用方法详见 小程序登录。 https://developers.weixin.qq.com/miniprogram/dev/api-backend/open-api/login/auth.code2Session.html

func (*Auth) GetPaidUnionId

func (a *Auth) GetPaidUnionId(openid string) (unionId string, err error)

getPaidUnionId 用户支付完成后,获取该用户的 UnionId,无需用户授权。本接口支持第三方平台代理查询。 https://developers.weixin.qq.com/miniprogram/dev/api-backend/open-api/user-info/auth.getPaidUnionId.html

func (*Auth) Init

func (a *Auth) Init(app utils.App) *Auth

type CheckMedia

type CheckMedia struct {
	MediaUrl  string `json:"media_url"`
	MediaType int    `json:"media_type"`
}

type Cloudbase

type Cloudbase struct {
	App utils.App
}

func (*Cloudbase) AddDelayedFunctionTask

func (a *Cloudbase) AddDelayedFunctionTask(body []byte) (interface{}, error)

AddDelayedFunctionTask 延时调用云函数 http://developers.weixin.qq.com/miniprogram/dev/api-backend/open-api/cloudbase/cloudbase.addDelayedFunctionTask.html

func (*Cloudbase) CreatePressureTest

func (a *Cloudbase) CreatePressureTest(body []byte) (interface{}, error)

CreatePressureTest 创建压测任务 http://developers.weixin.qq.com/miniprogram/dev/api-backend/open-api/cloudbase/cloudbase.createPressureTest.html

func (*Cloudbase) CreateSendSmsTask

func (a *Cloudbase) CreateSendSmsTask(body []byte) (interface{}, error)

CreateSendSmsTask 创建发短信任务。发送的短信支持打开云开发静态网站 H5,进而在 H5 里可以打开小程序。 http://developers.weixin.qq.com/miniprogram/dev/api-backend/open-api/cloudbase/cloudbase.createSendSmsTask.html

func (*Cloudbase) DescribeExtensionUploadInfo

func (a *Cloudbase) DescribeExtensionUploadInfo(body []byte) (interface{}, error)

DescribeExtensionUploadInfo 描述扩展上传文件信息 http://developers.weixin.qq.com/miniprogram/dev/api-backend/open-api/cloudbase/cloudbase.describeExtensionUploadInfo.html

func (*Cloudbase) DescribeSmsRecords

func (a *Cloudbase) DescribeSmsRecords(body []byte) (interface{}, error)

DescribeSmsRecords 查询 2 个月内的短信记录 http://developers.weixin.qq.com/miniprogram/dev/api-backend/open-api/cloudbase/cloudbase.describeSmsRecords.html

func (*Cloudbase) GetOpenData

func (a *Cloudbase) GetOpenData(body []byte) (interface{}, error)

GetOpenData 换取 cloudID 对应的开放数据 http://developers.weixin.qq.com/miniprogram/dev/api-backend/open-api/cloudbase/cloudbase.getOpenData.html

func (*Cloudbase) GetPressureTestReport

func (a *Cloudbase) GetPressureTestReport(body []byte) (interface{}, error)

GetPressureTestReport 获取压测报告 http://developers.weixin.qq.com/miniprogram/dev/api-backend/open-api/cloudbase/cloudbase.getPressureTestReport.html

func (*Cloudbase) GetPressureTestStatus

func (a *Cloudbase) GetPressureTestStatus(body []byte) (interface{}, error)

GetPressureTestStatus 获取压测状态 http://developers.weixin.qq.com/miniprogram/dev/api-backend/open-api/cloudbase/cloudbase.getPressureTestStatus.html

func (*Cloudbase) GetStatistics

func (a *Cloudbase) GetStatistics(body []byte) (interface{}, error)

GetStatistics 获取云开发数据接口 http://developers.weixin.qq.com/miniprogram/dev/api-backend/open-api/cloudbase/cloudbase.getStatistics.html

func (*Cloudbase) GetVoIPSign

func (a *Cloudbase) GetVoIPSign(body []byte) (interface{}, error)

GetVoIPSign 获取实时语音签名 http://developers.weixin.qq.com/miniprogram/dev/api-backend/open-api/cloudbase/cloudbase.getVoIPSign.html

func (*Cloudbase) Init

func (a *Cloudbase) Init(app utils.App) *Cloudbase

func (*Cloudbase) Report

func (a *Cloudbase) Report(body []byte) (interface{}, error)

Report 云开发通用上报接口 http://developers.weixin.qq.com/miniprogram/dev/api-backend/open-api/cloudbase/cloudbase.report.html

func (*Cloudbase) SendSms

func (a *Cloudbase) SendSms(body []byte) (interface{}, error)

SendSms 发送支持打开云开发静态网站的短信,该 H5 可以打开小程序。 http://developers.weixin.qq.com/miniprogram/dev/api-backend/open-api/cloudbase/cloudbase.sendSms.html

func (*Cloudbase) SendSmsV2

func (a *Cloudbase) SendSmsV2(body []byte) (interface{}, error)

SendSmsV2 发送携带 URL Link 的短信 http://developers.weixin.qq.com/miniprogram/dev/api-backend/open-api/cloudbase/cloudbase.sendSmsV2.html

type CustomerServiceMessage

type CustomerServiceMessage struct {
	App utils.App
	Dir string //素材服务器路径
}

func (*CustomerServiceMessage) GetTempMedia

func (a *CustomerServiceMessage) GetTempMedia(mediaId string) (interface{}, error)

GetTempMedia 获取客服消息内的临时素材。即下载临时的多媒体文件。目前小程序仅支持下载图片文件。 https://developers.weixin.qq.com/miniprogram/dev/api-backend/open-api/customer-message/customerServiceMessage.getTempMedia.html

func (*CustomerServiceMessage) Init

func (*CustomerServiceMessage) Send

func (a *CustomerServiceMessage) Send(body []byte) (interface{}, error)

Send 发送客服消息给用户。详细规则见 发送客服消息 http://developers.weixin.qq.com/miniprogram/dev/api-backend/open-api/customer-message/customerServiceMessage.send.html

func (*CustomerServiceMessage) SetTyping

func (a *CustomerServiceMessage) SetTyping(openid, command string) (Response, error)

SetTyping 下发客服当前输入状态给用户。详见 客服消息输入状态 https://developers.weixin.qq.com/miniprogram/dev/api-backend/open-api/customer-message/customerServiceMessage.setTyping.html

func (*CustomerServiceMessage) UploadTempMedia

func (a *CustomerServiceMessage) UploadTempMedia(uri string) (string, error)

UploadTempMedia 把媒体文件上传到微信服务器。目前仅支持图片。用于发送客服消息或被动回复用户消息。 https://developers.weixin.qq.com/miniprogram/dev/api-backend/open-api/customer-message/customerServiceMessage.uploadTempMedia.html

type DataAnalysis

type DataAnalysis struct {
	App utils.App
}

func (*DataAnalysis) GetDailySummary

func (a *DataAnalysis) GetDailySummary(body []byte) (interface{}, error)

GetDailySummary 获取用户访问小程序数据概况 http://developers.weixin.qq.com/miniprogram/dev/api-backend/open-api/data-analysis/analysis.getDailySummary.html

func (*DataAnalysis) GetVisitDistribution

func (a *DataAnalysis) GetVisitDistribution(body []byte) (interface{}, error)

GetVisitDistribution 获取用户小程序访问分布数据 http://developers.weixin.qq.com/miniprogram/dev/api-backend/open-api/data-analysis/analysis.getVisitDistribution.html

func (*DataAnalysis) Init

func (a *DataAnalysis) Init(app utils.App) *DataAnalysis

type DecodedData

type DecodedData struct {
	App utils.App
}

func (*DecodedData) DecodeCryptoData

func (a *DecodedData) DecodeCryptoData(sessionKey, encryptedData, iv string) (interface{}, error)

DecodeCryptoData 解密数据

func (*DecodedData) Init

func (a *DecodedData) Init(app utils.App) *DecodedData

type Img

type Img struct {
	App utils.App
}

func (*Img) AiCrop

func (a *Img) AiCrop(img_url string) (interface{}, error)

AiCrop 本接口提供基于小程序的图片智能裁剪能力。 http://developers.weixin.qq.com/miniprogram/dev/api-backend/open-api/img/img.aiCrop.html

func (*Img) AiCropBuffer

func (a *Img) AiCropBuffer(file io.Reader, fileName string) (interface{}, error)

AiCropBuffer 本接口提供基于小程序的图片智能裁剪能力。 http://developers.weixin.qq.com/miniprogram/dev/api-backend/open-api/img/img.aiCrop.html

func (*Img) Init

func (a *Img) Init(app utils.App) *Img

func (*Img) ScanQRCode

func (a *Img) ScanQRCode(img_url string) (interface{}, error)

ScanQRCode 本接口提供基于小程序的条码/二维码识别的API。 http://developers.weixin.qq.com/miniprogram/dev/api-backend/open-api/img/img.scanQRCode.html

func (*Img) ScanQRCodeBuffer

func (a *Img) ScanQRCodeBuffer(file io.Reader, fileName string) (interface{}, error)

ScanQRCode 本接口提供基于小程序的条码/二维码识别的API。 http://developers.weixin.qq.com/miniprogram/dev/api-backend/open-api/img/img.scanQRCode.html

func (*Img) Superresolution

func (a *Img) Superresolution(img_url string) (interface{}, error)

Superresolution 本接口提供基于小程序的图片高清化能力。 http://developers.weixin.qq.com/miniprogram/dev/api-backend/open-api/img/img.superresolution.html

func (*Img) SuperresolutionBuffer

func (a *Img) SuperresolutionBuffer(file io.Reader, fileName string) (interface{}, error)

Superresolution 本接口提供基于小程序的图片高清化能力。 http://developers.weixin.qq.com/miniprogram/dev/api-backend/open-api/img/img.superresolution.html

type Livebroadcast

type Livebroadcast struct {
	App utils.App
}

func (*Livebroadcast) Init

func (a *Livebroadcast) Init(app utils.App) *Livebroadcast

type NearbyPoi

type NearbyPoi struct {
	App utils.App
}

func (*NearbyPoi) Delete

func (a *NearbyPoi) Delete(body []byte) (interface{}, error)

Delete 删除地点 http://developers.weixin.qq.com/miniprogram/dev/api-backend/open-api/nearby-poi/nearbyPoi.delete.html

func (*NearbyPoi) GetList

func (a *NearbyPoi) GetList(page, page_rows string) (interface{}, error)

GetList 查看地点列表 http://developers.weixin.qq.com/miniprogram/dev/api-backend/open-api/nearby-poi/nearbyPoi.getList.html

func (*NearbyPoi) Init

func (a *NearbyPoi) Init(app utils.App) *NearbyPoi

type Ocr

type Ocr struct {
	App utils.App
}

func (*Ocr) Bankcard

func (a *Ocr) Bankcard(imgUrl string) (interface{}, error)

Bankcard 本接口提供基于小程序的银行卡 OCR 识别 http://developers.weixin.qq.com/miniprogram/dev/api-backend/open-api/ocr/ocr.bankcard.html

func (*Ocr) BankcardBuffer

func (a *Ocr) BankcardBuffer(file io.Reader, fileName string, imgUrl string) (interface{}, error)

BankcardBuffer 本接口提供基于小程序的银行卡 OCR 识别 http://developers.weixin.qq.com/miniprogram/dev/api-backend/open-api/ocr/ocr.bankcard.html

func (*Ocr) BusinessLicense

func (a *Ocr) BusinessLicense(imgUrl string) (interface{}, error)

BusinessLicense 本接口提供基于小程序的营业执照 OCR 识别 http://developers.weixin.qq.com/miniprogram/dev/api-backend/open-api/ocr/ocr.businessLicense.html

func (*Ocr) BusinessLicenseBuffer

func (a *Ocr) BusinessLicenseBuffer(file io.Reader, fileName string, imgUrl string) (interface{}, error)

BusinessLicenseBuffer 本接口提供基于小程序的营业执照 OCR 识别 http://developers.weixin.qq.com/miniprogram/dev/api-backend/open-api/ocr/ocr.businessLicense.html

func (*Ocr) DriverLicense

func (a *Ocr) DriverLicense(imgUrl string) (interface{}, error)

DriverLicense 本接口提供基于小程序的驾驶证 OCR 识别 http://developers.weixin.qq.com/miniprogram/dev/api-backend/open-api/ocr/ocr.driverLicense.html

func (*Ocr) DriverLicenseBuffer

func (a *Ocr) DriverLicenseBuffer(file io.Reader, fileName string, imgUrl string) (interface{}, error)

DriverLicenseBuffer 本接口提供基于小程序的驾驶证 OCR 识别 http://developers.weixin.qq.com/miniprogram/dev/api-backend/open-api/ocr/ocr.driverLicense.html

func (*Ocr) Idcard

func (a *Ocr) Idcard(imgUrl string) (interface{}, error)

Idcard 本接口提供基于小程序的身份证 OCR 识别 http://developers.weixin.qq.com/miniprogram/dev/api-backend/open-api/ocr/ocr.idcard.html

func (*Ocr) IdcardBuffer

func (a *Ocr) IdcardBuffer(file io.Reader, fileName string, imgUrl string) (interface{}, error)

IdcardBuffer 本接口提供基于小程序的身份证 OCR 识别 http://developers.weixin.qq.com/miniprogram/dev/api-backend/open-api/ocr/ocr.idcard.html

func (*Ocr) Init

func (a *Ocr) Init(app utils.App) *Ocr

func (*Ocr) PrintedText

func (a *Ocr) PrintedText(imgUrl string) (interface{}, error)

PrintedText 本接口提供基于小程序的通用印刷体 OCR 识别 http://developers.weixin.qq.com/miniprogram/dev/api-backend/open-api/ocr/ocr.printedText.html

func (*Ocr) PrintedTextBuffer

func (a *Ocr) PrintedTextBuffer(file io.Reader, fileName string, imgUrl string) (interface{}, error)

PrintedTextBuffer 本接口提供基于小程序的通用印刷体 OCR 识别 http://developers.weixin.qq.com/miniprogram/dev/api-backend/open-api/ocr/ocr.printedText.html

func (*Ocr) VehicleLicense

func (a *Ocr) VehicleLicense(imgUrl string) (interface{}, error)

VehicleLicense 本接口提供基于小程序的行驶证 OCR 识别 http://developers.weixin.qq.com/miniprogram/dev/api-backend/open-api/ocr/ocr.vehicleLicense.html

func (*Ocr) VehicleLicenseBuffer

func (a *Ocr) VehicleLicenseBuffer(file io.Reader, fileName string, imgUrl string) (interface{}, error)

VehicleLicenseBuffer 本接口提供基于小程序的行驶证 OCR 识别 http://developers.weixin.qq.com/miniprogram/dev/api-backend/open-api/ocr/ocr.vehicleLicense.html

type Operation

type Operation struct {
	App utils.App
}

func (*Operation) GetDomainInfo

func (a *Operation) GetDomainInfo(action string) (interface{}, error)

GetDomainInfo 查询域名配置 http://developers.weixin.qq.com/miniprogram/dev/api-backend/open-api/operation/operation.getDomainInfo.html

func (*Operation) GetFeedback

func (a *Operation) GetFeedback(types, page, num string) (interface{}, error)

GetFeedback 获取用户反馈列表 http://developers.weixin.qq.com/miniprogram/dev/api-backend/open-api/operation/operation.getFeedback.html

func (*Operation) GetFeedbackmedia

func (a *Operation) GetFeedbackmedia(recordId, mediaId string) (interface{}, error)

GetFeedbackmedia http://developers.weixin.qq.com/miniprogram/dev/api-backend/open-api/operation/operation.getFeedbackmedia.html

func (*Operation) GetJsErrDetail

func (a *Operation) GetJsErrDetail(body []byte) (interface{}, error)

GetJsErrDetail 错误查询详情 http://developers.weixin.qq.com/miniprogram/dev/api-backend/open-api/operation/operation.getJsErrDetail.html

func (*Operation) GetJsErrList

func (a *Operation) GetJsErrList(body []byte) (interface{}, error)

GetJsErrList 错误查询列表 http://developers.weixin.qq.com/miniprogram/dev/api-backend/open-api/operation/operation.getJsErrList.html

func (*Operation) GetPerformance

func (a *Operation) GetPerformance(body []byte) (interface{}, error)

GetPerformance 性能监控 http://developers.weixin.qq.com/miniprogram/dev/api-backend/open-api/operation/operation.getPerformance.html

func (*Operation) GetSceneList

func (a *Operation) GetSceneList() (interface{}, error)

GetSceneList 获取访问来源 http://developers.weixin.qq.com/miniprogram/dev/api-backend/open-api/operation/operation.getSceneList.html

func (*Operation) GetVersionList

func (a *Operation) GetVersionList() (interface{}, error)

GetVersionList 获取客户端版本 http://developers.weixin.qq.com/miniprogram/dev/api-backend/open-api/operation/operation.getVersionList.html

func (*Operation) Init

func (a *Operation) Init(app utils.App) *Operation

func (*Operation) RealtimelogSearch

func (a *Operation) RealtimelogSearch(body []byte) (interface{}, error)

RealtimelogSearch 实时日志查询 http://developers.weixin.qq.com/miniprogram/dev/api-backend/open-api/operation/operation.realtimelogSearch.html

type PluginManagement

type PluginManagement struct {
	App utils.App
}

func (*PluginManagement) ApplyPlugin

func (a *PluginManagement) ApplyPlugin(body []byte) (interface{}, error)

ApplyPlugin 向插件开发者发起使用插件的申请 http://developers.weixin.qq.com/miniprogram/dev/api-backend/open-api/plugin-management/pluginManager.applyPlugin.html

func (*PluginManagement) GetPluginList

func (a *PluginManagement) GetPluginList(body []byte) (interface{}, error)

GetPluginList 查询已添加的插件 http://developers.weixin.qq.com/miniprogram/dev/api-backend/open-api/plugin-management/pluginManager.getPluginList.html

func (*PluginManagement) Init

func (*PluginManagement) UnbindPlugin

func (a *PluginManagement) UnbindPlugin(body []byte) (interface{}, error)

UnbindPlugin 删除已添加的插件 http://developers.weixin.qq.com/miniprogram/dev/api-backend/open-api/plugin-management/pluginManager.unbindPlugin.html

type Response

type Response struct {
	Errcode int    `json:"errcode"`
	ErrMsg  string `json:"errmsg"`
}

type SafetyControlCapability

type SafetyControlCapability struct {
	App utils.App
}

func (*SafetyControlCapability) GetUserRiskRank

func (a *SafetyControlCapability) GetUserRiskRank(body []byte) (interface{}, error)

GetUserRiskRank 根据提交的用户信息数据获取用户的安全等级 risk_rank,无需用户授权。 http://developers.weixin.qq.com/miniprogram/dev/api-backend/open-api/safety-control-capability/riskControl.getUserRiskRank.html

func (*SafetyControlCapability) Init

type Search struct {
	App utils.App
}

func (*Search) ImageSearch

func (a *Search) ImageSearch(file io.Reader, fileName string) (interface{}, error)

ImageSearch 本接口提供基于小程序的站内搜商品图片搜索能力 https://developers.weixin.qq.com/miniprogram/dev/api-backend/open-api/search/search.imageSearch.html

func (*Search) Init

func (a *Search) Init(app utils.App) *Search

func (*Search) SiteSearch

func (a *Search) SiteSearch(body []byte) (interface{}, error)

SiteSearch 小程序内部搜索API提供针对页面的查询能力,小程序开发者输入搜索词后,将返回自身小程序和搜索词相关的页面。因此,利用该接口,开发者可以查看指定内容的页面被微信平台的收录情况;同时,该接口也可供开发者在小程序内应用,给小程序用户提供搜索能力。 https://developers.weixin.qq.com/miniprogram/dev/api-backend/open-api/search/search.siteSearch.html

func (*Search) SubmitPages

func (a *Search) SubmitPages(body []byte) (interface{}, error)

SubmitPages 小程序开发者可以通过本接口提交小程序页面url及参数信息(不要推送webview页面),让微信可以更及时的收录到小程序的页面信息,开发者提交的页面信息将可能被用于小程序搜索结果展示。 https://developers.weixin.qq.com/miniprogram/dev/api-backend/open-api/search/search.submitPages.html

type SecCheck

type SecCheck struct {
	App utils.App
}

func (*SecCheck) ImgSecCheck

func (a *SecCheck) ImgSecCheck(file io.Reader, fileName string) (Response, error)

ImgSecCheck 校验一张图片是否含有违法违规内容。详见内容安全解决方案 http://developers.weixin.qq.com/miniprogram/dev/api-backend/open-api/sec-check/security.imgSecCheck.html

func (*SecCheck) Init

func (a *SecCheck) Init(app utils.App) *SecCheck

func (*SecCheck) MediaCheckAsync

func (a *SecCheck) MediaCheckAsync(body []byte) (interface{}, error)

MediaCheckAsync 异步校验图片/音频是否含有违法违规内容。 http://developers.weixin.qq.com/miniprogram/dev/api-backend/open-api/sec-check/security.mediaCheckAsync.html

func (*SecCheck) MsgSecCheck

func (a *SecCheck) MsgSecCheck(body []byte) (Response, error)

MsgSecCheck 检查一段文本是否含有违法违规内容。 http://developers.weixin.qq.com/miniprogram/dev/api-backend/open-api/sec-check/security.msgSecCheck.html

type SendImage

type SendImage struct {
	Touser  string `json:"touser"`
	Msgtype string `json:"msgtype"`
	Image   struct {
		MediaId string `json:"media_id"`
	} `json:"image"`
}
type SendLink struct {
	Touser  string `json:"touser"`
	Msgtype string `json:"msgtype"`
	Link    struct {
		Title       string `json:"title"`
		Description string `json:"description"`
		Url         string `json:"url"`
		ThumbUrl    string `json:"thumb_url"`
	} `json:"link"`
}

type SendMini

type SendMini struct {
	Touser          string `json:"touser"`
	Msgtype         string `json:"msgtype"`
	Miniprogrampage struct {
		Title        string `json:"title"`
		Pagepath     string `json:"pagepath"`
		ThumbMediaId string `json:"thumb_media_id"`
	} `json:"miniprogrampage"`
}

type SendText

type SendText struct {
	Touser  string `json:"touser"`
	Msgtype string `json:"msgtype"`
	Text    struct {
		Content string `json:"content"`
	} `json:"text"`
}

type ServiceMarket

type ServiceMarket struct {
	App utils.App
}

func (*ServiceMarket) Init

func (a *ServiceMarket) Init(app utils.App) *ServiceMarket

func (*ServiceMarket) InvokeService

func (a *ServiceMarket) InvokeService(body []byte) (interface{}, error)

InvokeService 调用服务平台提供的服务 https://developers.weixin.qq.com/miniprogram/dev/api-backend/open-api/service-market/serviceMarket.invokeService.html

type Session

type Session struct {
	Openid     string `json:"openid"`
	SessionKey string `json:"session_key"`
	Unionid    string `json:"unionid"`
	Errcode    int    `json:"errcode"`
	ErrMsg     string `json:"errmsg"`
}

type Soter

type Soter struct {
	App utils.App
}

func (*Soter) Init

func (a *Soter) Init(app utils.App) *Soter

func (*Soter) VerifySignature

func (a *Soter) VerifySignature(body []byte) (interface{}, error)

VerifySignature 生物认证秘钥签名验证 https://developers.weixin.qq.com/miniprogram/dev/api-backend/open-api/soter/soter.verifySignature.html

type Subscribe

type Subscribe struct {
	Touser     string      `json:"touser,omitempty"`
	TemplateId string      `json:"template_id,omitempty"`
	Page       string      `json:"page,omitempty"`
	Data       interface{} `json:"data,omitempty"`
}

type SubscribeAdd

type SubscribeAdd struct {
	Tid       string `json:"tid,omitempty"`
	KidList   []int  `json:"kidList,omitempty"`
	SceneDesc string `json:"sceneDesc,omitempty"`
}

type SubscribeMessage

type SubscribeMessage struct {
	App utils.App
}

func (*SubscribeMessage) AddTemplate

func (a *SubscribeMessage) AddTemplate(body []byte) (interface{}, error)

AddTemplate 组合模板并添加至帐号下的个人模板库 http://developers.weixin.qq.com/miniprogram/dev/api-backend/open-api/subscribe-message/subscribeMessage.addTemplate.html

func (*SubscribeMessage) DeleteTemplate

func (a *SubscribeMessage) DeleteTemplate(body []byte) (interface{}, error)

DeleteTemplate 删除帐号下的个人模板 http://developers.weixin.qq.com/miniprogram/dev/api-backend/open-api/subscribe-message/subscribeMessage.deleteTemplate.html

func (*SubscribeMessage) GetCategory

func (a *SubscribeMessage) GetCategory() (interface{}, error)

GetCategory 获取小程序账号的类目 http://developers.weixin.qq.com/miniprogram/dev/api-backend/open-api/subscribe-message/subscribeMessage.getCategory.html

func (*SubscribeMessage) GetPubTemplateKeyWordsById

func (a *SubscribeMessage) GetPubTemplateKeyWordsById(tid string) (interface{}, error)

GetPubTemplateKeyWordsById 获取模板标题下的关键词列表 http://developers.weixin.qq.com/miniprogram/dev/api-backend/open-api/subscribe-message/subscribeMessage.getPubTemplateKeyWordsById.html

func (*SubscribeMessage) GetPubTemplateTitleList

func (a *SubscribeMessage) GetPubTemplateTitleList(ids string, start, limit int) (interface{}, error)

GetPubTemplateTitleList 获取帐号所属类目下的公共模板标题 http://developers.weixin.qq.com/miniprogram/dev/api-backend/open-api/subscribe-message/subscribeMessage.getPubTemplateTitleList.html

func (*SubscribeMessage) GetTemplateList

func (a *SubscribeMessage) GetTemplateList() (interface{}, error)

GetTemplateList 获取当前帐号下的个人模板列表 http://developers.weixin.qq.com/miniprogram/dev/api-backend/open-api/subscribe-message/subscribeMessage.getTemplateList.html

func (*SubscribeMessage) Init

type Template

type Template struct {
	Touser     string      `json:"touser,omitempty"`
	TemplateId string      `json:"template_id,omitempty"`
	Page       string      `json:"page,omitempty"`
	Data       interface{} `json:"data,omitempty"`
}

type TemplateMessage

type TemplateMessage struct {
	App utils.App
}

func (*TemplateMessage) Init

func (a *TemplateMessage) Init(app utils.App) *TemplateMessage

type Text

type Text struct {
	Content string `json:"content"`
}

type TextResponse

type TextResponse struct {
	Errcode int    `json:"errcode"`
	ErrMsg  string `json:"errmsg"`
}

type UniformMessage

type UniformMessage struct {
	App utils.App
}

func (*UniformMessage) Init

func (a *UniformMessage) Init(app utils.App) *UniformMessage

func (*UniformMessage) Send

func (a *UniformMessage) Send(body []byte) (interface{}, error)

Send 下发小程序和公众号统一的服务消息 http://developers.weixin.qq.com/miniprogram/dev/api-backend/open-api/uniform-message/uniformMessage.send.html

type UpdatableMessage

type UpdatableMessage struct {
	App utils.App
}

func (*UpdatableMessage) Init

type UrlLink struct {
	App utils.App
}

func (*UrlLink) Generate

func (a *UrlLink) Generate(body []byte) (interface{}, error)

Generate 获取小程序 URL Link,适用于短信、邮件、网页、微信内等拉起小程序的业务场景。通过该接口,可以选择生成到期失效和永久有效的小程序链接,目前仅针对国内非个人主体的小程序开放,详见获取 URL Link。 https://developers.weixin.qq.com/miniprogram/dev/api-backend/open-api/url-link/urllink.generate.html

func (*UrlLink) Init

func (a *UrlLink) Init(app utils.App) *UrlLink

type UrlScheme

type UrlScheme struct {
	App utils.App
}

func (*UrlScheme) Generate

func (a *UrlScheme) Generate(body []byte) (interface{}, error)

Generate 获取小程序 scheme 码,适用于短信、邮件、外部网页、微信内等拉起小程序的业务场景。通过该接口,可以选择生成到期失效和永久有效的小程序码,目前仅针对国内非个人主体的小程序开放,详见获取 URL scheme。 https://developers.weixin.qq.com/miniprogram/dev/api-backend/open-api/url-scheme/UrlScheme.generate.html

func (*UrlScheme) Init

func (a *UrlScheme) Init(app utils.App) *UrlScheme

type User

type User struct {
	Session string `json:"session,omitempty"`
	Openid  string `json:"openid,omitempty"`
	Appid   string `json:"appid,omitempty"`
	Unionid string `json:"unionid,omitempty"`
	Status  bool   `json:"status,omitempty"`
}

type WxBizDataCrypt

type WxBizDataCrypt struct {
	AppId      string
	SessionKey string
}

WxBizDataCrypt represents an active WxBizDataCrypt object

func (*WxBizDataCrypt) Decrypt

func (wxCrypt *WxBizDataCrypt) Decrypt(encryptedData string, iv string, isJSON bool) (interface{}, error)

Decrypt Weixin APP's AES Data If isJSON is true, Decrypt return JSON type. If isJSON is false, Decrypt return map type.

type Wxacode

type Wxacode struct {
	App utils.App
}

func (*Wxacode) CreateQRCode

func (a *Wxacode) CreateQRCode(path, scene string) (interface{}, error)

CreateQRCode 获取小程序二维码,适用于需要的码数量较少的业务场景。通过该接口生成的小程序码,永久有效,有数量限制,详见获取二维码。 https://developers.weixin.qq.com/miniprogram/dev/api-backend/open-api/qr-code/wxacode.createQRCode.html

func (*Wxacode) Get

func (a *Wxacode) Get(path, scene string) (interface{}, error)

Get 获取小程序码,适用于需要的码数量较少的业务场景。通过该接口生成的小程序码,永久有效,有数量限制,详见获取二维码。 https://developers.weixin.qq.com/miniprogram/dev/api-backend/open-api/qr-code/wxacode.get.html

func (*Wxacode) GetUnlimited

func (a *Wxacode) GetUnlimited(path, scene string) (interface{}, error)

GetUnlimited 获取小程序码,适用于需要的码数量极多的业务场景。通过该接口生成的小程序码,永久有效,数量暂无限制。 更多用法详见 获取二维码。 https://developers.weixin.qq.com/miniprogram/dev/api-backend/open-api/qr-code/wxacode.getUnlimited.html

func (*Wxacode) Init

func (a *Wxacode) Init(app utils.App) *Wxacode

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL