Documentation ¶
Index ¶
- type Client
- func (comp *Client) Create(buttons []*request.Button) (*response.ResponseMenuCreate, error)
- func (comp *Client) CreateConditional(buttons []*request.Button, rules *request.RequestMatchRule) (*response.ResponseMenuCreateConditional, error)
- func (comp *Client) CurrentSelfMenu() (*response.ResponseCurrentSelfMenu, error)
- func (comp *Client) Delete() (*response.ResponseMenuDelete, error)
- func (comp *Client) DeleteConditional(menuID int) (*response.ResponseMenuDelete, error)
- func (comp *Client) Get() (*response.ResponseMenuGet, error)
- func (comp *Client) TryMatch(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 {
*kernel.BaseClient
}
func NewClient ¶
func NewClient(app kernel.ApplicationInterface) *Client
func RegisterProvider ¶
func RegisterProvider(app kernel.ApplicationInterface) *Client
func (*Client) Create ¶
创建接口 https://developers.weixin.qq.com/doc/offiaccount/Custom_Menus/Creating_Custom-Defined_Menu.html
func (*Client) CreateConditional ¶
func (comp *Client) CreateConditional(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 ¶
func (comp *Client) CurrentSelfMenu() (*response.ResponseCurrentSelfMenu, error)
查询接口 https://developers.weixin.qq.com/doc/offiaccount/Custom_Menus/Querying_Custom_Menus.html
func (*Client) Delete ¶
func (comp *Client) Delete() (*response.ResponseMenuDelete, error)
删除接口 https://developers.weixin.qq.com/doc/offiaccount/Custom_Menus/Deleting_Custom-Defined_Menu.html
func (*Client) DeleteConditional ¶
func (comp *Client) DeleteConditional(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(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.