diff --git a/src/main/java/com/lq/wechat/mode/media/imagerMedia.java b/src/main/java/com/lq/wechat/mode/media/imagerMedia.java index 28dacf0..ae01c1c 100755 --- a/src/main/java/com/lq/wechat/mode/media/imagerMedia.java +++ b/src/main/java/com/lq/wechat/mode/media/imagerMedia.java @@ -1,10 +1,9 @@ package com.lq.wechat.mode.media; /** - * Created by qi_liang on 2018/5/24. + * 图片消息类型 + * @author qi */ public class imagerMedia { - - } diff --git a/src/main/java/com/lq/wechat/mode/menu/WechatButton.java b/src/main/java/com/lq/wechat/mode/menu/WechatButton.java index c754c4e..d4374f7 100755 --- a/src/main/java/com/lq/wechat/mode/menu/WechatButton.java +++ b/src/main/java/com/lq/wechat/mode/menu/WechatButton.java @@ -1,6 +1,7 @@ package com.lq.wechat.mode.menu; /** + * * Created by qi_liang on 2018/6/1. */ @@ -8,24 +9,41 @@ import java.util.List; /** * 自定义菜单子菜单 + * @author qi */ public class WechatButton { - // 二级菜单 + /** + * 二级菜单 + */ List sub_button; - //菜单名称 + /** + * 菜单名称 + */ private String name; - //菜单类型 + /** + *菜单类型 + */ private String type; - //菜单键值 + /** + * 菜单键值 + */ private String key; - //菜单跳转url + /** + * 菜单跳转url + */ private String url; - //返回永久素材 + /** + * 返回永久素材 + */ private String media_id; - //微信小程序id + /** + * 微信小程序id + */ private String appid; - //小程序页面路径 + /** + * 小程序页面路径 + */ private String pageapth; public List getSub_button() { diff --git a/src/main/java/com/lq/wechat/mode/menu/WechatMenu.java b/src/main/java/com/lq/wechat/mode/menu/WechatMenu.java index 3775519..7f61ad5 100755 --- a/src/main/java/com/lq/wechat/mode/menu/WechatMenu.java +++ b/src/main/java/com/lq/wechat/mode/menu/WechatMenu.java @@ -3,7 +3,8 @@ package com.lq.wechat.mode.menu; import java.util.List; /** - * Created by qi_liang on 2018/6/1. + * @author qi + * 菜单类 */ public class WechatMenu { //菜单类 diff --git a/src/main/java/com/lq/wechat/mode/menu/WechatMenuCofig.java b/src/main/java/com/lq/wechat/mode/menu/WechatMenuCofig.java index 45a33c1..f275fdf 100755 --- a/src/main/java/com/lq/wechat/mode/menu/WechatMenuCofig.java +++ b/src/main/java/com/lq/wechat/mode/menu/WechatMenuCofig.java @@ -1,14 +1,19 @@ package com.lq.wechat.mode.menu; /** - * Created by qi_liang on 2018/5/24. + * 菜单配置类 + * @author qi */ public class WechatMenuCofig { - //自定义菜单 + /** + * 自定义菜单 + */ private WechatMenu menu; - //个性菜单 + /** + * 个性菜单 + */ private WechatMenu conditionalmenu; public WechatMenu getMenu() { diff --git a/src/main/java/com/lq/wechat/mode/message/ImageMessage.java b/src/main/java/com/lq/wechat/mode/message/ImageMessage.java index 7516d4b..1e287a4 100755 --- a/src/main/java/com/lq/wechat/mode/message/ImageMessage.java +++ b/src/main/java/com/lq/wechat/mode/message/ImageMessage.java @@ -3,13 +3,8 @@ package com.lq.wechat.mode.message; import com.thoughtworks.xstream.annotations.XStreamAlias; /** - * ToUserName 开发者微信号 -FromUserName 发送方帐号(一个OpenID) -CreateTime 消息创建时间 (整型) -MsgType image -PicUrl 图片链接(由系统生成) -MediaId 图片消息媒体id,可以调用多媒体文件下载接口拉取数据。 -MsgId 消息id,64位整型 + * 图片消息 + *@author qi */ @XStreamAlias("xml") public class ImageMessage extends BaseMessage { diff --git a/src/main/java/com/lq/wechat/mode/message/ItemMessage.java b/src/main/java/com/lq/wechat/mode/message/ItemMessage.java index 629ca64..f3164fc 100755 --- a/src/main/java/com/lq/wechat/mode/message/ItemMessage.java +++ b/src/main/java/com/lq/wechat/mode/message/ItemMessage.java @@ -2,11 +2,27 @@ package com.lq.wechat.mode.message; import com.thoughtworks.xstream.annotations.XStreamAlias; +/** + * 多文本消息-选项 + * @author qi + */ @XStreamAlias("item") public class ItemMessage { + /** + * 标题 + */ private String Title; + /** + * 说明 + */ private String Description; + /** + * 图片链接 + */ private String PicUrl; + /** + * 跳转链接 + */ private String Url; public String getTitle() { return Title; diff --git a/src/main/java/com/lq/wechat/mode/message/LinkMessage.java b/src/main/java/com/lq/wechat/mode/message/LinkMessage.java index 08c5a8c..7db7bd1 100755 --- a/src/main/java/com/lq/wechat/mode/message/LinkMessage.java +++ b/src/main/java/com/lq/wechat/mode/message/LinkMessage.java @@ -3,22 +3,23 @@ package com.lq.wechat.mode.message; import com.thoughtworks.xstream.annotations.XStreamAlias; /** - * ToUserName 接收方微信号 -FromUserName 发送方微信号,若为普通用户,则是一个OpenID -CreateTime 消息创建时间 -MsgType 消息类型,link -Title 消息标题 -Description 消息描述 -Url 消息链接 -MsgId 消息id,64位整型 - * @author Administrator + * 链接消息 + * @author qi * */ @XStreamAlias("xml") public class LinkMessage extends BaseMessage { - + /** + * 消息标题 + */ private String Title; + /** + * 消息描述 + */ private String Description; + /** + * 消息链接 + */ private String Url; public String getTitle() { return Title; @@ -38,7 +39,4 @@ public class LinkMessage extends BaseMessage { public void setUrl(String url) { Url = url; } - - - } diff --git a/src/main/java/com/lq/wechat/mode/message/LocationMessage.java b/src/main/java/com/lq/wechat/mode/message/LocationMessage.java index ad005fa..cc7b396 100755 --- a/src/main/java/com/lq/wechat/mode/message/LocationMessage.java +++ b/src/main/java/com/lq/wechat/mode/message/LocationMessage.java @@ -3,23 +3,27 @@ package com.lq.wechat.mode.message; import com.thoughtworks.xstream.annotations.XStreamAlias; /** - * ToUserName 开发者微信号 -FromUserName 发送方帐号(一个OpenID) -CreateTime 消息创建时间 (整型) -MsgType location -Location_X 地理位置维度 -Location_Y 地理位置经度 -Scale 地图缩放大小 -Label 地理位置信息 -MsgId 消息id,64位整型 - * @author Administrator + * 地理位置消息 + * @author qi * */ @XStreamAlias("xml") public class LocationMessage extends BaseMessage { + /** + * 地理位置维度 + */ private String Location_X; + /** + * 地理位置经度 + */ private String Location_Y; + /** + * 地图缩放大小 + */ private String Scale; + /** + * 地理位置信息 + */ private String Label; public String getLocation_X() { return Location_X; diff --git a/src/main/java/com/lq/wechat/mode/message/NewsMessage.java b/src/main/java/com/lq/wechat/mode/message/NewsMessage.java index c926d56..544b23c 100755 --- a/src/main/java/com/lq/wechat/mode/message/NewsMessage.java +++ b/src/main/java/com/lq/wechat/mode/message/NewsMessage.java @@ -6,17 +6,8 @@ import java.util.List; /** - * ToUserName 是 接收方帐号(收到的OpenID) -FromUserName 是 开发者微信号 -CreateTime 是 消息创建时间 (整型) -MsgType 是 news -ArticleCount 是 图文消息个数,限制为8条以内 -Articles 是 多条图文消息信息,默认第一个item为大图,注意,如果图文数超过8,则将会无响应 -Title 否 图文消息标题 -Description 否 图文消息描述 -PicUrl 否 图片链接,支持JPG、PNG格式,较好的效果为大图360*200,小图200*200 -Url 否 点击图文消息跳转链接 - * @author Administrator + * + * @author qi * */ @XStreamAlias("xml") diff --git a/src/main/java/com/lq/wechat/mode/message/ShortvideoMessage.java b/src/main/java/com/lq/wechat/mode/message/ShortvideoMessage.java index b5c38b3..7486396 100755 --- a/src/main/java/com/lq/wechat/mode/message/ShortvideoMessage.java +++ b/src/main/java/com/lq/wechat/mode/message/ShortvideoMessage.java @@ -10,12 +10,18 @@ MsgType 小视频为shortvideo MediaId 视频消息媒体id,可以调用多媒体文件下载接口拉取数据。 ThumbMediaId 视频消息缩略图的媒体id,可以调用多媒体文件下载接口拉取数据。 MsgId 消息id,64位整型 - * @author Administrator + * @author qi * */ @XStreamAlias("xml") public class ShortvideoMessage extends BaseMessage { + /** + * 视频消息媒体id + */ private String MediaId; + /** + * 视频消息缩略图的媒体id + */ private String ThumbMediaId; public String getMediaId() { return MediaId; diff --git a/src/main/java/com/lq/wechat/mode/message/TextMessage.java b/src/main/java/com/lq/wechat/mode/message/TextMessage.java index e5dbc87..1fa84d2 100755 --- a/src/main/java/com/lq/wechat/mode/message/TextMessage.java +++ b/src/main/java/com/lq/wechat/mode/message/TextMessage.java @@ -4,6 +4,7 @@ import com.thoughtworks.xstream.annotations.XStreamAlias; /** * 被动回复-文本消息 + * @author qi */ @XStreamAlias("xml") public class TextMessage extends BaseMessage { diff --git a/src/main/java/com/lq/wechat/mode/message/VideoMessage.java b/src/main/java/com/lq/wechat/mode/message/VideoMessage.java index ae3551c..1dc4d97 100755 --- a/src/main/java/com/lq/wechat/mode/message/VideoMessage.java +++ b/src/main/java/com/lq/wechat/mode/message/VideoMessage.java @@ -10,12 +10,18 @@ MsgType 视频为video MediaId 视频消息媒体id,可以调用多媒体文件下载接口拉取数据。 ThumbMediaId 视频消息缩略图的媒体id,可以调用多媒体文件下载接口拉取数据。 MsgId 消息id,64位整型 - * @author Administrator + * @author qi * */ @XStreamAlias("xml") public class VideoMessage extends BaseMessage { + /** + * 视频消息媒体id,可以调用多媒体文件下载接口拉取数据。 + */ private String MediaId; + /** + * 视频消息缩略图的媒体id,可以调用多媒体文件下载接口拉取数据。 + */ private String ThumbMediaId; public String getMediaId() { return MediaId; diff --git a/src/main/java/com/lq/wechat/mode/message/VoicemMessage.java b/src/main/java/com/lq/wechat/mode/message/VoicemMessage.java index 9dc246c..e698a7b 100755 --- a/src/main/java/com/lq/wechat/mode/message/VoicemMessage.java +++ b/src/main/java/com/lq/wechat/mode/message/VoicemMessage.java @@ -3,19 +3,19 @@ package com.lq.wechat.mode.message; import com.thoughtworks.xstream.annotations.XStreamAlias; /** - * ToUserName 开发者微信号 -FromUserName 发送方帐号(一个OpenID) -CreateTime 消息创建时间 (整型) -MsgType 语音为voice -MediaId 语音消息媒体id,可以调用多媒体文件下载接口拉取数据。 -Format 语音格式,如amr,speex等 -MsgID 消息id,64位整型 - * @author Administrator + * + * @author qi * */ @XStreamAlias("xml") public class VoicemMessage extends BaseMessage { + /** + * 语音消息媒体id,可以调用多媒体文件下载接口拉取数据。 + */ private String MediaId; + /** + * 语音格式,如amr,speex等 + */ private String Format; public String getMediaId() { return MediaId;