security

package
v3.3.2 Latest Latest
Warning

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

Go to latest
Published: Dec 25, 2024 License: MIT Imports: 6 Imported by: 1

Documentation

Index

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调用

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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