| @@ -43,13 +43,13 @@ public class WxMpSelfMenuInfo implements Serializable { | |||||
| @SerializedName("type") | @SerializedName("type") | ||||
| private String type; | private String type; | ||||
| /** | /** | ||||
| * 菜单名称 | |||||
| * 菜单名称. | |||||
| */ | */ | ||||
| @SerializedName("name") | @SerializedName("name") | ||||
| private String name; | private String name; | ||||
| /** | /** | ||||
| * <pre> | * <pre> | ||||
| * 对于不同的菜单类型,value的值意义不同。 | |||||
| * 对于不同的菜单类型,value的值意义不同. | |||||
| * 官网上设置的自定义菜单: | * 官网上设置的自定义菜单: | ||||
| * <li>Text:保存文字到value; | * <li>Text:保存文字到value; | ||||
| * <li>Img、voice:保存mediaID到value; | * <li>Img、voice:保存mediaID到value; | ||||
| @@ -58,29 +58,52 @@ public class WxMpSelfMenuInfo implements Serializable { | |||||
| * <li>View:保存链接到url。</li> | * <li>View:保存链接到url。</li> | ||||
| * | * | ||||
| * 使用API设置的自定义菜单: | * 使用API设置的自定义菜单: | ||||
| * <li>click、scancode_push、scancode_waitmsg、pic_sysphoto、pic_photo_or_album、 pic_weixin、location_select:保存值到key; | |||||
| * <li>click、scancode_push、scancode_waitmsg、pic_sysphoto、pic_photo_or_album、pic_weixin、location_select:保存值到key; | |||||
| * <li>view:保存链接到url | * <li>view:保存链接到url | ||||
| * </pre> | * </pre> | ||||
| */ | */ | ||||
| @SerializedName("key") | @SerializedName("key") | ||||
| private String key; | private String key; | ||||
| /** | /** | ||||
| * . | |||||
| * | |||||
| * @see #key | * @see #key | ||||
| */ | */ | ||||
| @SerializedName("url") | @SerializedName("url") | ||||
| private String url; | private String url; | ||||
| /** | /** | ||||
| * . | |||||
| * | |||||
| * @see #key | * @see #key | ||||
| */ | */ | ||||
| @SerializedName("value") | @SerializedName("value") | ||||
| private String value; | private String value; | ||||
| /** | |||||
| * <pre> | |||||
| * 小程序的appid. | |||||
| * miniprogram类型必须 | |||||
| * </pre> | |||||
| */ | |||||
| @SerializedName("appid") | |||||
| private String appId; | |||||
| /** | /** | ||||
| * 子菜单信息 | |||||
| * <pre> | |||||
| * 小程序的页面路径. | |||||
| * miniprogram类型必须 | |||||
| * </pre> | |||||
| */ | |||||
| @SerializedName("pagepath") | |||||
| private String pagePath; | |||||
| /** | |||||
| * 子菜单信息. | |||||
| */ | */ | ||||
| @SerializedName("sub_button") | @SerializedName("sub_button") | ||||
| private SubButtons subButtons; | private SubButtons subButtons; | ||||
| /** | /** | ||||
| * 图文消息的信息 | |||||
| * 图文消息的信息. | |||||
| */ | */ | ||||
| @SerializedName("news_info") | @SerializedName("news_info") | ||||
| private NewsInfo newsInfo; | private NewsInfo newsInfo; | ||||
| @@ -116,42 +139,41 @@ public class WxMpSelfMenuInfo implements Serializable { | |||||
| } | } | ||||
| @Data | @Data | ||||
| public static class NewsInButton implements Serializable { | |||||
| public static class NewsInButton implements Serializable { | |||||
| private static final long serialVersionUID = 8701455967664912972L; | private static final long serialVersionUID = 8701455967664912972L; | ||||
| /** | /** | ||||
| * 图文消息的标题 | |||||
| * 图文消息的标题. | |||||
| */ | */ | ||||
| @SerializedName("title") | @SerializedName("title") | ||||
| private String title; | private String title; | ||||
| /** | /** | ||||
| * 摘要 | |||||
| * 摘要. | |||||
| */ | */ | ||||
| @SerializedName("digest") | @SerializedName("digest") | ||||
| private String digest; | private String digest; | ||||
| /** | /** | ||||
| * 作者 | |||||
| * 作者. | |||||
| */ | */ | ||||
| @SerializedName("author") | @SerializedName("author") | ||||
| private String author; | private String author; | ||||
| /** | /** | ||||
| * show_cover | |||||
| * 是否显示封面,0为不显示,1为显示 | |||||
| * 是否显示封面,0为不显示,1为显示. | |||||
| */ | */ | ||||
| @SerializedName("show_cover") | @SerializedName("show_cover") | ||||
| private Integer showCover; | private Integer showCover; | ||||
| /** | /** | ||||
| * 封面图片的URL | |||||
| * 封面图片的URL. | |||||
| */ | */ | ||||
| @SerializedName("cover_url") | @SerializedName("cover_url") | ||||
| private String coverUrl; | private String coverUrl; | ||||
| /** | /** | ||||
| * 正文的URL | |||||
| * 正文的URL. | |||||
| */ | */ | ||||
| @SerializedName("content_url") | @SerializedName("content_url") | ||||
| private String contentUrl; | private String contentUrl; | ||||
| /** | /** | ||||
| * 原文的URL,若置空则无查看原文入口 | |||||
| * 原文的URL,若置空则无查看原文入口. | |||||
| */ | */ | ||||
| @SerializedName("source_url") | @SerializedName("source_url") | ||||
| private String sourceUrl; | private String sourceUrl; | ||||
| @@ -160,7 +182,6 @@ public class WxMpSelfMenuInfo implements Serializable { | |||||
| public String toString() { | public String toString() { | ||||
| return WxMpGsonBuilder.create().toJson(this); | return WxMpGsonBuilder.create().toJson(this); | ||||
| } | } | ||||
| } | } | ||||
| } | } | ||||
| } | } | ||||