dingtalk

package
v1.0.45 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2022 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type App added in v1.0.44

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

func (*App) NewParamsWith added in v1.0.44

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

func (*App) RobotSend added in v1.0.44

func (app *App) RobotSend(notMustParams ...Params) *RobotSendResult

RobotSend 自定义机器人 https://open.dingtalk.com/document/group/custom-robot-access

type Params added in v1.0.44

type Params map[string]interface{}

Params 请求参数

func NewParams added in v1.0.44

func NewParams() Params

func (Params) Set added in v1.0.44

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

func (Params) SetParams added in v1.0.44

func (p Params) SetParams(params Params)

type RobotSendResponse added in v1.0.44

type RobotSendResponse struct {
	Errcode int64  `json:"errcode"`
	Errmsg  string `json:"errmsg"`
}

type RobotSendResult added in v1.0.44

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

func NewRobotSendResult added in v1.0.44

func NewRobotSendResult(result RobotSendResponse, body []byte, err error) *RobotSendResult

Jump to

Keyboard shortcuts

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