Browse Source

wechat public menu button

ls 3 years ago
parent
commit
860c64799b
1 changed files with 4 additions and 3 deletions
  1. 4 3
      wechat/structure.go

+ 4 - 3
wechat/structure.go

@@ -181,7 +181,8 @@ type Menu struct {
 	Info   menuInfo `json:"selfmenu_info"`
 }
 
-type formMenuButton struct {
+// FormMenuButton menu button
+type FormMenuButton struct {
 	Type      string            `json:"type,omitempty"`
 	Name      string            `json:"name"`
 	Key       string            `json:"key,omitempty"`
@@ -189,12 +190,12 @@ type formMenuButton struct {
 	AppID     string            `json:"appid,omitempty"`
 	Pagepath  string            `json:"pagepath,omitempty"`
 	MediaID   string            `json:"media_id,omitempty"`
-	SubButton []*formMenuButton `json:"sub_button,omitempty"`
+	SubButton []*FormMenuButton `json:"sub_button,omitempty"`
 }
 
 // FormMenu menu create
 type FormMenu struct {
-	Button []*formMenuButton `json:"button"`
+	Button []*FormMenuButton `json:"button"`
 }
 
 // ArticleItem article item