Documentation ¶
Index ¶
- type Client
- func (comp *Client) ImgSecCheck(ctx context.Context, path string, form *power.HashMap) (*response2.ResponseMiniProgram, error)
- func (comp *Client) MediaCheckAsync(ctx context.Context, mediaURL string, mediaType int, version int, ...) (*response.ResponseSecurityMediaCheckASync, error)
- func (comp *Client) MsgSecCheck(ctx context.Context, openID string, scene int, version int, content string, ...) (*response.ResponseSecurityMsgCheckASync, 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) ImgSecCheck ¶
func (comp *Client) ImgSecCheck(ctx context.Context, path string, form *power.HashMap) (*response2.ResponseMiniProgram, error)
向插件开发者发起使用插件的申请 https://developers.weixin.qq.com/miniprogram/dev/framework/security.imgSecCheck.html
func (*Client) MediaCheckAsync ¶
func (comp *Client) MediaCheckAsync(ctx context.Context, mediaURL string, mediaType int, version int, openID string, scene int) (*response.ResponseSecurityMediaCheckASync, error)
异步校验图片/音频是否含有违法违规内容 https://developers.weixin.qq.com/miniprogram/dev/framework/security.mediaCheckAsync-v1.html#请求地址
func (*Client) MsgSecCheck ¶
func (comp *Client) MsgSecCheck( ctx context.Context, openID string, scene int, version int, content string, nickname string, title string, signature string) (*response.ResponseSecurityMsgCheckASync, error)
检查一段文本是否含有违法违规内容 https://developers.weixin.qq.com/miniprogram/dev/framework/security.msgSecCheck-v1.html#HTTPS%20调用
Click to show internal directories.
Click to hide internal directories.