Documentation ¶
Index ¶
- type Client
- func (comp *Client) GetTempMedia(mediaID string) (*http.Response, error)
- func (comp *Client) Send(toUser string, msgType string, msg interface{}) (*response2.ResponseMiniProgram, error)
- func (comp *Client) SendImage(toUser string, msg *request.CustomerServiceMsgImage) (*response2.ResponseMiniProgram, error)
- func (comp *Client) SendLink(toUser string, msg *request.CustomerServiceMsgLink) (*response2.ResponseMiniProgram, error)
- func (comp *Client) SendMiniProgramPage(toUser string, msg *request.CustomerServiceMsgMpPage) (*response2.ResponseMiniProgram, error)
- func (comp *Client) SendText(toUser string, msg *request.CustomerServiceMsgText) (*response2.ResponseMiniProgram, error)
- func (comp *Client) SetTyping(toUser string, command string) (*response2.ResponseMiniProgram, error)
- func (comp *Client) UploadTempMedia(mediaType string, path string, form *power.HashMap) (*response.ResponseCustomerServiceMessageUploadTempMedia, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
*kernel.BaseClient
}
func RegisterProvider ¶
func RegisterProvider(app kernel.ApplicationInterface) *Client
func (*Client) GetTempMedia ¶
func (*Client) Send ¶
func (*Client) SendImage ¶
func (comp *Client) SendImage(toUser string, msg *request.CustomerServiceMsgImage) (*response2.ResponseMiniProgram, error)
func (*Client) SendLink ¶
func (comp *Client) SendLink(toUser string, msg *request.CustomerServiceMsgLink) (*response2.ResponseMiniProgram, error)
func (*Client) SendMiniProgramPage ¶
func (comp *Client) SendMiniProgramPage(toUser string, msg *request.CustomerServiceMsgMpPage) (*response2.ResponseMiniProgram, error)
func (*Client) SendText ¶
func (comp *Client) SendText(toUser string, msg *request.CustomerServiceMsgText) (*response2.ResponseMiniProgram, error)
func (*Client) SetTyping ¶
func (comp *Client) SetTyping(toUser string, command string) (*response2.ResponseMiniProgram, error)
下发客服当前输入状态给用户 https://developers.weixin.qq.com/miniprogram/dev/api-backend/open-api/customer-message/customerServiceMessage.setTyping.html
func (*Client) UploadTempMedia ¶
Click to show internal directories.
Click to hide internal directories.