response

package
v2.0.39 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 8, 2022 License: MIT Imports: 1 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Button

type Button struct {
	Type       string       `json:"type"`
	Name       string       `json:"name"`
	Key        string       `json:"key"`
	SubButtons []*SubButton `json:"sub_button"`
}

type ConditionalMenu

type ConditionalMenu struct {
	Buttons   []*Button  `json:"button"`
	MatchRule *MatchRule `json:"matchrule"`
	MenuID    int        `json:"menuid"`
}

type MatchRule

type MatchRule struct {
	GroupID            int    `json:"group_id"`
	Sex                int    `json:"sex"`
	Country            string `json:"country"`
	Province           string `json:"province"`
	City               string `json:"city"`
	ClientPlatformType int    `json:"client_platform_type"`
}
type Menu struct {
	Buttons []*Button `json:"button"`
	MenuID  int       `json:"menuid"`
}

type ResponseCurrentSelfMenu

type ResponseCurrentSelfMenu struct {
	*response.ResponseOfficialAccount

	IsMenuOpen   int           `json:"is_menu_open"`
	SelfMenuInfo *SelfMenuInfo `json:"selfmenu_info"`
}

type ResponseMenuCreate

type ResponseMenuCreate struct {
	*response.ResponseOfficialAccount
}

type ResponseMenuCreateConditional

type ResponseMenuCreateConditional struct {
	*response.ResponseOfficialAccount

	MenuID string `json:"menuid"`
}

type ResponseMenuDelete

type ResponseMenuDelete struct {
	*response.ResponseOfficialAccount
}

type ResponseMenuGet

type ResponseMenuGet struct {
	*response.ResponseOfficialAccount

	Menus            *Menu              `json:"menu"`
	ConditionalMenus []*ConditionalMenu `json:"conditionalmenu"`
}

type ResponseMenuTryMatch

type ResponseMenuTryMatch struct {
	Buttons []*Button `json:"button"`
}

type SelfMenuInfo

type SelfMenuInfo struct {
	Buttons []*Button `json:"button"`
}

type SubButton

type SubButton struct {
	Type     string `json:"type"`
	Name     string `json:"name"`
	URL      string `json:"url,omitempty"`
	AppID    string `json:"appid,omitempty"`
	PagePath string `json:"pagepath,omitempty"`
	Key      string `json:"key,omitempty"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL