|
@@ -181,25 +181,20 @@ type Menu struct {
|
|
|
Info menuInfo `json:"selfmenu_info"`
|
|
|
}
|
|
|
|
|
|
-type formMenuSubButton struct {
|
|
|
- Type string `json:"type,omitempty"`
|
|
|
- Name string `json:"name"`
|
|
|
- Key string `json:"key,omitempty"`
|
|
|
- URL string `json:"url,omitempty"`
|
|
|
- AppID string `json:"appid,omitempty"`
|
|
|
- Pagepath string `json:"pagepath,omitempty"`
|
|
|
-}
|
|
|
-
|
|
|
-type formMenuInfo struct {
|
|
|
- Type string `json:"type,omitempty"`
|
|
|
- Name string `json:"name"`
|
|
|
- Key string `json:"key,omitempty"`
|
|
|
- SubButton *formMenuSubButton `json:"sub_button,omitempty"`
|
|
|
+type formMenuButton struct {
|
|
|
+ Type string `json:"type,omitempty"`
|
|
|
+ Name string `json:"name"`
|
|
|
+ Key string `json:"key,omitempty"`
|
|
|
+ URL string `json:"url,omitempty"`
|
|
|
+ AppID string `json:"appid,omitempty"`
|
|
|
+ Pagepath string `json:"pagepath,omitempty"`
|
|
|
+ MediaID string `json:"media_id,omitempty"`
|
|
|
+ SubButton []*formMenuButton `json:"sub_button,omitempty"`
|
|
|
}
|
|
|
|
|
|
// FormMenu menu create
|
|
|
type FormMenu struct {
|
|
|
- Button []formMenuInfo `json:"button"`
|
|
|
+ Button []*formMenuButton `json:"button"`
|
|
|
}
|
|
|
|
|
|
// ArticleItem article item
|