dingtalk

package
v1.0.47 Latest Latest
Warning

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

Go to latest
Published: Jul 20, 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 Client added in v1.0.47

type Client struct {
	// contains filtered or unexported fields
}

func NewClient added in v1.0.47

func NewClient(config *ConfigClient) (*Client, error)

func (*Client) RobotSend added in v1.0.47

func (c *Client) RobotSend(notMustParams ...gorequest.Params) *RobotSendResult

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

type ConfigClient added in v1.0.47

type ConfigClient struct {
	Secret       string
	AccessToken  string
	MongoDb      *dorm.MongoClient // 日志数据库
	PgsqlDb      *gorm.DB          // 日志数据库
	DatabaseName string            // 库名
}

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             // 内容
	Http   gorequest.Response // 请求
	Err    error              // 错误
}

Jump to

Keyboard shortcuts

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