wechatqy

package
v1.0.44 Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type App

type App struct {
	Key   string
	Mongo gomongo.App // 日志数据库
}

func (*App) NewParamsWith

func (app *App) NewParamsWith(params ...Params) Params

func (*App) WebhookSend

func (app *App) WebhookSend(notMustParams ...Params) *WebhookSendResult

WebhookSend https://developer.work.weixin.qq.com/document/path/90372

type Params

type Params map[string]interface{}

Params 请求参数

func NewParams

func NewParams() Params

func (Params) Set

func (p Params) Set(key string, value interface{})

func (Params) SetParams

func (p Params) SetParams(params Params)

type WebhookSendResponse added in v1.0.44

type WebhookSendResponse struct {
	Errcode   int64  `json:"errcode"`
	Errmsg    string `json:"errmsg"`
	Type      string `json:"type"`
	MediaId   string `json:"media_id"`
	CreatedAt string `json:"created_at"`
}

type WebhookSendResult

type WebhookSendResult struct {
	Result WebhookSendResponse // 结果
	Body   []byte              // 内容
	Err    error               // 错误
}

func NewWebhookSendResult added in v1.0.44

func NewWebhookSendResult(result WebhookSendResponse, body []byte, err error) *WebhookSendResult

Jump to

Keyboard shortcuts

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