Documentation ¶
Index ¶
- type Client
- func (comp *Client) GetTempMedia(ctx context.Context, mediaID string) (*http.Response, error)
- func (comp *Client) Send(ctx context.Context, toUser string, msgType string, msg interface{}) (*response2.ResponseMiniProgram, error)
- func (comp *Client) SendImage(ctx context.Context, toUser string, msg *request.CustomerServiceMsgImage) (*response2.ResponseMiniProgram, error)
- func (comp *Client) SendLink(ctx context.Context, toUser string, msg *request.CustomerServiceMsgLink) (*response2.ResponseMiniProgram, error)
- func (comp *Client) SendMiniProgramPage(ctx context.Context, toUser string, msg *request.CustomerServiceMsgMpPage) (*response2.ResponseMiniProgram, error)
- func (comp *Client) SendText(ctx context.Context, toUser string, msg *request.CustomerServiceMsgText) (*response2.ResponseMiniProgram, error)
- func (comp *Client) SetTyping(ctx context.Context, toUser string, command string) (*response2.ResponseMiniProgram, error)
- func (comp *Client) UploadTempMedia(ctx context.Context, 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 {
BaseClient *kernel.BaseClient
}
func RegisterProvider ¶
func RegisterProvider(app kernel.ApplicationInterface) (*Client, error)
func (*Client) GetTempMedia ¶
func (*Client) Send ¶
func (*Client) SendImage ¶
func (comp *Client) SendImage(ctx context.Context, toUser string, msg *request.CustomerServiceMsgImage) (*response2.ResponseMiniProgram, error)
func (*Client) SendLink ¶
func (comp *Client) SendLink(ctx context.Context, toUser string, msg *request.CustomerServiceMsgLink) (*response2.ResponseMiniProgram, error)
func (*Client) SendMiniProgramPage ¶
func (comp *Client) SendMiniProgramPage(ctx context.Context, toUser string, msg *request.CustomerServiceMsgMpPage) (*response2.ResponseMiniProgram, error)
func (*Client) SendText ¶
func (comp *Client) SendText(ctx context.Context, toUser string, msg *request.CustomerServiceMsgText) (*response2.ResponseMiniProgram, error)
func (*Client) SetTyping ¶
func (comp *Client) SetTyping(ctx context.Context, toUser string, command string) (*response2.ResponseMiniProgram, error)
下发客服当前输入状态给用户 https://developers.weixin.qq.com/miniprogram/dev/api-backend/open-api/customer-message/customerServiceMessage.setTyping.html
Click to show internal directories.
Click to hide internal directories.