Documentation ¶
Index ¶
- Constants
- type Client
- func (c *Client) ConfigApiGormFun(apiClientFun golog.ApiGormFun)
- func (c *Client) Get(ctx context.Context, _method string, notMustParams ...gorequest.Params) ([]byte, error)
- func (c *Client) Post(ctx context.Context, _method string, notMustParams ...gorequest.Params) ([]byte, error)
- func (c *Client) RobotSend(ctx context.Context, access_token string, notMustParams ...gorequest.Params) (*RobotSendResult, error)
- func (c *Client) RobotSendSign(ctx context.Context, access_token string, secret string, ...) (*RobotSendResult, error)
- type RobotSendResponse
- type RobotSendResult
Constants ¶
View Source
const (
LogTable = "dingtalk"
)
View Source
const (
Version = "1.0.20"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client 实例
func (*Client) ConfigApiGormFun ¶ added in v1.0.17
func (c *Client) ConfigApiGormFun(apiClientFun golog.ApiGormFun)
ConfigApiGormFun 接口日志配置
func (*Client) RobotSend ¶
func (c *Client) RobotSend(ctx context.Context, access_token string, notMustParams ...gorequest.Params) (*RobotSendResult, error)
RobotSend 发送消息 https://open.dingtalk.com/document/group/custom-robot-access
func (*Client) RobotSendSign ¶ added in v1.0.19
func (c *Client) RobotSendSign(ctx context.Context, access_token string, secret string, notMustParams ...gorequest.Params) (*RobotSendResult, error)
RobotSendSign 发送消息签名版 https://open.dingtalk.com/document/group/custom-robot-access
type RobotSendResponse ¶
type RobotSendResult ¶
type RobotSendResult struct { Result RobotSendResponse // 结果 Body []byte // 内容 Http gorequest.Response // 请求 }
Click to show internal directories.
Click to hide internal directories.