wechat

package
v2.3.0 Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

Types

type AccessTokenResult

type AccessTokenResult struct {
	AccessToken string `json:"access_token"`
	ExpiresIn   int    `json:"expires_in"`
}

type Code2SessionResult

type Code2SessionResult struct {
	OpenID     string `json:"openid"`
	SessionKey string `json:"session_key"`
	UnionID    string `json:"unionid"`
	ErrCode    int64  `json:"errcode"`
	ErrMsg     string `json:"errmsg"`
}

Code2SessionResult code2Session result

type NotifyResult

type NotifyResult struct {
	ErrCode int    `json:"errcode"`
	ErrMsg  string `json:"errmsg"`
}

type SecCheckDetail

type SecCheckDetail struct {
	Strategy string `json:"strategy"`
	ErrCode  int    `json:"errcode"`
	Suggest  string `json:"suggest"`
	Label    int    `json:"label"`
	Keyword  string `json:"keyword"`
	Prob     int    `json:"prob"`
}

type SecCheckResponse

type SecCheckResponse struct {
	ErrCode int              `json:"errcode"`
	ErrMsg  string           `json:"errmsg"`
	Detail  []SecCheckDetail `json:"detail"`
	TraceID string           `json:"trace_id"`
	Result  SecCheckResult   `json:"result"`
}

func MsgSecCheck

func MsgSecCheck(openid, content, accessToken string, scene int) (*SecCheckResponse, error)

MsgSecCheck MsgSecCheck api https://developers.weixin.qq.com/miniprogram/dev/OpenApiDoc/sec-center/sec-check/msgSecCheck.html

type SecCheckResult

type SecCheckResult struct {
	Suggest string `json:"suggest"`
	Label   int    `json:"label"`
}

Jump to

Keyboard shortcuts

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