Documentation ¶
Index ¶
- func RegisterProvider(app kernel.ApplicationInterface) (*Client, *Messager, error)
- type Client
- func (comp *Client) Message(message interface{}) (*Messager, error)
- func (comp *Client) Send(key string, message *power.HashMap) (*response.ResponseGroupRobotSend, error)
- func (comp *Client) SendFile(key string, message *request.GroupRobotMsgFile) (*response.ResponseGroupRobotSend, error)
- func (comp *Client) SendImage(key string, message *request.GroupRobotMsgImage) (*response.ResponseGroupRobotSend, error)
- func (comp *Client) SendMarkdown(key string, message *request.GroupRobotMsgMarkdown) (*response.ResponseGroupRobotSend, error)
- func (comp *Client) SendNewsArticles(key string, message []*request.GroupRobotMsgNewsArticles) (*response.ResponseGroupRobotSend, error)
- func (comp *Client) SendTemplateCard(key string, message *request.GroupRobotMsgTemplateCard) (*response.ResponseGroupRobotSend, error)
- func (comp *Client) SendText(key string, message *request.GroupRobotMsgText) (*response.ResponseGroupRobotSend, error)
- type Messager
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterProvider ¶
func RegisterProvider(app kernel.ApplicationInterface) (*Client, *Messager, error)
Types ¶
type Client ¶
type Client struct {
*kernel.BaseClient
}
func (*Client) Send ¶
func (comp *Client) Send(key string, message *power.HashMap) (*response.ResponseGroupRobotSend, error)
群机器人配置说明 https://developer.work.weixin.qq.com/document/path/91770#文本类型
func (*Client) SendFile ¶
func (comp *Client) SendFile(key string, message *request.GroupRobotMsgFile) (*response.ResponseGroupRobotSend, error)
func (*Client) SendImage ¶
func (comp *Client) SendImage(key string, message *request.GroupRobotMsgImage) (*response.ResponseGroupRobotSend, error)
func (*Client) SendMarkdown ¶
func (comp *Client) SendMarkdown(key string, message *request.GroupRobotMsgMarkdown) (*response.ResponseGroupRobotSend, error)
func (*Client) SendNewsArticles ¶
func (comp *Client) SendNewsArticles(key string, message []*request.GroupRobotMsgNewsArticles) (*response.ResponseGroupRobotSend, error)
SendNewsArticles 图文类型
func (*Client) SendTemplateCard ¶
func (comp *Client) SendTemplateCard(key string, message *request.GroupRobotMsgTemplateCard) (*response.ResponseGroupRobotSend, error)
func (*Client) SendText ¶
func (comp *Client) SendText(key string, message *request.GroupRobotMsgText) (*response.ResponseGroupRobotSend, error)
type Messager ¶
func NewMessager ¶
Click to show internal directories.
Click to hide internal directories.