Documentation ¶
Index ¶
- type Client
- func (comp *Client) Create(ctx context.Context, buttons []*request.Button) (*response.ResponseMenuCreate, error)
- func (comp *Client) CreateConditional(ctx context.Context, buttons []*request.Button, ...) (*response.ResponseMenuCreateConditional, error)
- func (comp *Client) CurrentSelfMenu(ctx context.Context) (*response.ResponseCurrentSelfMenu, error)
- func (comp *Client) Delete(ctx context.Context) (*response.ResponseMenuDelete, error)
- func (comp *Client) DeleteConditional(ctx context.Context, menuID int) (*response.ResponseMenuDelete, error)
- func (comp *Client) Get(ctx context.Context) (*response.ResponseMenuGet, error)
- func (comp *Client) TryMatch(ctx context.Context, userID string) (*response.ResponseMenuTryMatch, 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) Create ¶
func (comp *Client) Create(ctx context.Context, buttons []*request.Button) (*response.ResponseMenuCreate, error)
创建接口 https://developers.weixin.qq.com/doc/offiaccount/Custom_Menus/Creating_Custom-Defined_Menu.html
func (*Client) CreateConditional ¶
func (comp *Client) CreateConditional(ctx context.Context, buttons []*request.Button, rules *request.RequestMatchRule) (*response.ResponseMenuCreateConditional, error)
创建个性化菜单 https://developers.weixin.qq.com/doc/offiaccount/Custom_Menus/Personalized_menu_interface.html
func (*Client) CurrentSelfMenu ¶
查询接口 https://developers.weixin/crm.qq.com/doc/offiaccount/Custom_Menus/Querying_Custom_Menus.html
func (*Client) Delete ¶
删除接口 https://developers.weixin.qq.com/doc/offiaccount/Custom_Menus/Deleting_Custom-Defined_Menu.html
func (*Client) DeleteConditional ¶
func (comp *Client) DeleteConditional(ctx context.Context, menuID int) (*response.ResponseMenuDelete, error)
删除个性化菜单 https://developers.weixin.qq.com/doc/offiaccount/Custom_Menus/Personalized_menu_interface.html
func (*Client) TryMatch ¶
func (comp *Client) TryMatch(ctx context.Context, userID string) (*response.ResponseMenuTryMatch, error)
测试个性化菜单匹配结果 https://developers.weixin.qq.com/doc/offiaccount/Custom_Menus/Personalized_menu_interface.html#1
Click to show internal directories.
Click to hide internal directories.