dingtalk

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CodeOK    = 0
	MessageOK = "ok"
)

Variables

View Source
var ErrRequest = errors.New("dingtalk request error")

Functions

func Sign

func Sign(timestamp string, secret string) (string, error)

Sign 签名

func Validate

func Validate(signStr, timestamp, secret string) (bool, error)

Validate 验证

Types

type ResponseMeta

type ResponseMeta struct {
	ErrorCode    int64  `json:"errcode"`          // 出错返回码,为0表示成功,非0表示调用失败
	ErrorMessage string `json:"errmsg,omitempty"` // 返回码提示语
}

ResponseMeta 响应操作信息

func (ResponseMeta) String

func (t ResponseMeta) String() string

func (ResponseMeta) Succeed

func (t ResponseMeta) Succeed() bool

Succeed 操作是否成功

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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