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://open.work.weixin.qq.com/api/doc/90000/90136/91770#%E6%96%87%E6%9C%AC%E7%B1%BB%E5%9E%8B
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.