Documentation ¶
Index ¶
- type Client
- func (comp *Client) ChangeVisitStatus(ctx context.Context, action string) (*response2.ResponseOpenPlatform, error)
- func (comp *Client) Commit(ctx context.Context, templateID string, extJson string, version string, ...) (*response2.ResponseOpenPlatform, error)
- func (comp *Client) GetAuditStatus(ctx context.Context, auditID int) (*response.ResponseGetAuditStatus, error)
- func (comp *Client) GetCategory(ctx context.Context) (*response.ResponseGetCategory, error)
- func (comp *Client) GetGrayRelease(ctx context.Context) (*response.ResponseGetGrayRelease, error)
- func (comp *Client) GetLatestAuditStatus(ctx context.Context) (*response.ResponseGetLatestAuditStatus, error)
- func (comp *Client) GetPage(ctx context.Context) (*response.ResponseGetPage, error)
- func (comp *Client) GetQrCode(ctx context.Context, path string) (*http.Response, error)
- func (comp *Client) GetSupportVersion(ctx context.Context) (*response.ResponseGetSupportVersion, error)
- func (comp *Client) GrayRelease(ctx context.Context, grayPercentage int) (*response2.ResponseOpenPlatform, error)
- func (comp *Client) QueryQuota(ctx context.Context) (*response.ResponseQueryQuota, error)
- func (comp *Client) Release(ctx context.Context) (*response2.ResponseOpenPlatform, error)
- func (comp *Client) RevertGrayRelease(ctx context.Context) (*response2.ResponseOpenPlatform, error)
- func (comp *Client) RollbackRelease(ctx context.Context) (*response.ResponseRollbackRelease, error)
- func (comp *Client) SetSupportVersion(ctx context.Context, version string) (*response2.ResponseOpenPlatform, error)
- func (comp *Client) SpeedupAudit(ctx context.Context, auditID int) (*response2.ResponseOpenPlatform, error)
- func (comp *Client) SubmitAudit(ctx context.Context, params *request.RequestSubmitAudit) (*response.ResponseSubmitAudit, error)
- func (comp *Client) WithdrawAudit(ctx context.Context) (*response2.ResponseOpenPlatform, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
BaseClient *kernel.BaseClient
}
func RegisterProvider ¶
func RegisterProvider(app kernel.ApplicationInterface) (*Client, error)
func (*Client) ChangeVisitStatus ¶
func (comp *Client) ChangeVisitStatus(ctx context.Context, action string) (*response2.ResponseOpenPlatform, error)
修改小程序服务状态 https://developers.weixin.qq.com/doc/oplatform/Third-party_Platforms/2.0/api/code/change_visitstatus.html#请求地址
func (*Client) Commit ¶
func (comp *Client) Commit(ctx context.Context, templateID string, extJson string, version string, description string) (*response2.ResponseOpenPlatform, error)
上传小程序代码并生成体验版 https://developers.weixin.qq.com/doc/oplatform/Third-party_Platforms/2.0/api/code/commit.html
func (*Client) GetAuditStatus ¶
func (comp *Client) GetAuditStatus(ctx context.Context, auditID int) (*response.ResponseGetAuditStatus, error)
查询指定发布审核单的审核状态 https://developers.weixin.qq.com/doc/oplatform/Third-party_Platforms/2.0/api/code/get_auditstatus.html#请求地址
func (*Client) GetCategory ¶
获取审核时可填写的类目信息 https://developers.weixin.qq.com/doc/oplatform/Third-party_Platforms/2.0/api/category/get_category.html#请求地址
func (*Client) GetGrayRelease ¶
查询当前分阶段发布详情 https://developers.weixin.qq.com/doc/oplatform/Third-party_Platforms/2.0/api/code/getgrayreleaseplan.html#请求地址
func (*Client) GetLatestAuditStatus ¶
func (comp *Client) GetLatestAuditStatus(ctx context.Context) (*response.ResponseGetLatestAuditStatus, error)
查询最新一次提交的审核状态 https://developers.weixin.qq.com/doc/oplatform/Third-party_Platforms/2.0/api/code/get_latest_auditstatus.html#请求地址
func (*Client) GetPage ¶
获取已上传的代码的页面列表 https://developers.weixin.qq.com/doc/oplatform/Third-party_Platforms/2.0/api/code/get_page.html#请求地址
func (*Client) GetQrCode ¶
获取体验版二维码 https://developers.weixin.qq.com/doc/oplatform/Third-party_Platforms/2.0/api/code/get_qrcode.html
func (*Client) GetSupportVersion ¶
func (comp *Client) GetSupportVersion(ctx context.Context) (*response.ResponseGetSupportVersion, error)
查询当前设置的最低基础库版本及各版本用户占比 https://developers.weixin.qq.com/doc/oplatform/Third-party_Platforms/2.0/api/code/getweappsupportversion.html#请求地址
func (*Client) GrayRelease ¶
func (comp *Client) GrayRelease(ctx context.Context, grayPercentage int) (*response2.ResponseOpenPlatform, error)
分阶段发布 https://developers.weixin.qq.com/doc/oplatform/Third-party_Platforms/2.0/api/code/grayrelease.html#请求地址
func (*Client) QueryQuota ¶
查询服务商的当月提审限额(quota)和加急次数 https://developers.weixin.qq.com/doc/oplatform/Third-party_Platforms/2.0/api/code/query_quota.html#请求地址
func (*Client) Release ¶
发布已通过审核的小程序 https://developers.weixin.qq.com/doc/oplatform/Third-party_Platforms/2.0/api/code/release.html#请求地址
func (*Client) RevertGrayRelease ¶
取消分阶段发布 https://developers.weixin.qq.com/doc/oplatform/Third-party_Platforms/2.0/api/code/revertgrayrelease.html#请求地址
func (*Client) RollbackRelease ¶
获取可回退的小程序版本 https://developers.weixin.qq.com/doc/oplatform/Third-party_Platforms/2.0/api/code/get_history_version.html#请求地址
func (*Client) SetSupportVersion ¶
func (comp *Client) SetSupportVersion(ctx context.Context, version string) (*response2.ResponseOpenPlatform, error)
设置最低基础库版本 https://developers.weixin.qq.com/doc/oplatform/Third-party_Platforms/2.0/api/code/setweappsupportversion.html#请求地址
func (*Client) SpeedupAudit ¶
func (*Client) SubmitAudit ¶
func (comp *Client) SubmitAudit(ctx context.Context, params *request.RequestSubmitAudit) (*response.ResponseSubmitAudit, error)
提交审核 https://developers.weixin.qq.com/doc/oplatform/Third-party_Platforms/2.0/api/code/submit_audit.html
func (*Client) WithdrawAudit ¶
小程序审核撤回 https://developers.weixin.qq.com/doc/oplatform/Third-party_Platforms/2.0/api/code/undocodeaudit.html#请求地址