dingding

package
v0.0.0-...-fc17aaa Latest Latest
Warning

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

Go to latest
Published: May 23, 2023 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Secret    string   // 密钥
	Urls      string   // 路径
	AtMobiles []string // @的手机号(固定)
	AtUserIds []string // @的用户id(固定)
}

type DingSrv

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

func NewDingSrv

func NewDingSrv(opt *Config) DingSrv

func (DingSrv) DingdingSend

func (d DingSrv) DingdingSend(message string, opt ...Option) (bool, error)

type Option

type Option struct {
	AtMobiles []string // @的手机号(额外添加)
	AtUserIds []string // @的用户id(额外添加)
}

type ResultForDingDing

type ResultForDingDing struct {
	Errcode int    `json:"errcode"`
	Errmsg  string `json:"errmsg"`
}

Jump to

Keyboard shortcuts

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