Documentation ¶
Index ¶
Constants ¶
View Source
const ( // ButtonTypeClick .. ButtonTypeClick = "click" // ButtonTypeView ... ButtonTypeView = "view" // ButtonTypeMiniProgram ... ButtonTypeMiniProgram = "miniprogram" // ButtonTypeMediaID ... ButtonTypeMediaID = "media_id" // ButtonTypeViewLimited ... ButtonTypeViewLimited = "view_limited" )
Variables ¶
View Source
var ( // ErrSubButtonAppend ... ErrSubButtonAppend = errors.New("追加按钮错误,请查查按钮类型") // ErrButtonType ... ErrButtonType = errors.New("菜单类型错误") )
Functions ¶
This section is empty.
Types ¶
type Button ¶
type Button struct { Type string `json:"type"` Name string `json:"name"` Key string `json:"key"` SubButton SubButton `json:"sub_button"` }
Button 按钮
type ClickButton ¶
type ClickButton struct { Type string `json:"type"` Name string `json:"name"` Key string `json:"key"` }
ClickButton click点击类型
type MediaIDButton ¶
type MediaIDButton struct { Type string `json:"type"` Name string `json:"name"` MediaID string `json:"media_id"` }
MediaIDButton 永久素材类型可以是图片、音频、视频、图文消息
type MiniProgramButton ¶
type MiniProgramButton struct { Type string `json:"type"` Name string `json:"name"` URL string `json:"url"` AppID string `json:"appid"` PagePath string `json:"pagepath"` }
MiniProgramButton 小程序类型
type ViewButton ¶
type ViewButton struct { Type string `json:"type"` Name string `json:"name"` URL string `json:"url"` }
ViewButton view类型
type ViewLimitedButton ¶
type ViewLimitedButton struct { Type string `json:"type"` Name string `json:"name"` MediaID string `json:"media_id"` }
ViewLimitedButton 小程序类型
Click to show internal directories.
Click to hide internal directories.