Documentation ¶
Index ¶
- type Client
- func (comp *Client) AddTemplate(ctx context.Context, tid string, kidList []int, sceneDesc string) (*response3.ResponseSubscribeMessageAddTemplate, error)
- func (comp *Client) DeleteTemplate(ctx context.Context, priTmplID string) (*response2.ResponseMiniProgram, error)
- func (comp *Client) GetCategory(ctx context.Context) (*response3.ResponseSubscribeMessageGetCategory, error)
- func (comp *Client) GetPubTemplateKeyWordsByID(ctx context.Context, tid string) (*response3.ResponseSubscribeMessageGetPubTemplateKeyWordsByID, error)
- func (comp *Client) GetPubTemplateTitleList(ctx context.Context, ids string, start int, limit int) (*response3.ResponseSubscribeMessageGetPubTemplateTitleList, error)
- func (comp *Client) GetTemplateList(ctx context.Context) (*response3.ResponseSubscribeMessageGetTemplateList, error)
- func (comp *Client) Send(ctx context.Context, data *request.RequestSubscribeMessageSend) (*response2.ResponseMiniProgram, 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) AddTemplate ¶
func (comp *Client) AddTemplate(ctx context.Context, tid string, kidList []int, sceneDesc string) (*response3.ResponseSubscribeMessageAddTemplate, error)
组合模板并添加至帐号下的个人模板库 https://developers.weixin.qq.com/miniprogram/dev/api-backend/open-api/subscribe-message/subscribeMessage.addTemplate.html
func (*Client) DeleteTemplate ¶
func (*Client) GetCategory ¶
func (*Client) GetPubTemplateKeyWordsByID ¶
func (*Client) GetPubTemplateTitleList ¶
func (comp *Client) GetPubTemplateTitleList(ctx context.Context, ids string, start int, limit int) (*response3.ResponseSubscribeMessageGetPubTemplateTitleList, error)
获取帐号所属类目下的公共模板标题 https://developers.weixin.qq.com/miniprogram/dev/api-backend/open-api/subscribe-message/subscribeMessage.getPubTemplateTitleList.html
func (*Client) GetTemplateList ¶
func (comp *Client) GetTemplateList(ctx context.Context) (*response3.ResponseSubscribeMessageGetTemplateList, error)
获取当前帐号下的个人模板列表 https://developers.weixin.qq.com/miniprogram/dev/api-backend/open-api/subscribe-message/subscribeMessage.getTemplateList.html
func (*Client) Send ¶
func (comp *Client) Send(ctx context.Context, data *request.RequestSubscribeMessageSend) (*response2.ResponseMiniProgram, error)
Click to show internal directories.
Click to hide internal directories.