JAVA/SMTAIServer/src/main/java/com/smtaiserver/smtaiserver/vo/Item.java
@@ -1,8 +1,41 @@ package com.smtaiserver.smtaiserver.vo; public class Item { private String title; private String description; private String picUrl; private String url; private String title; private String description; private String picUrl; private String url; public String getTitle() { return title; } public void setTitle(String title) { this.title = title; } public String getDescription() { return description; } public void setDescription(String description) { this.description = description; } public String getPicUrl() { return picUrl; } public void setPicUrl(String picUrl) { this.picUrl = picUrl; } public String getUrl() { return url; } public void setUrl(String url) { this.url = url; } } JAVA/SMTAIServer/src/main/java/com/smtaiserver/smtaiserver/vo/MediaVo.java
@@ -3,21 +3,81 @@ import javax.xml.bind.annotation.XmlElement; import lombok.Setter; @Setter public class MediaVo { @XmlElement(name = "MediaId") private String mediaId; @XmlElement(name = "item") private Item item; @XmlElement(name = "Title") private String title; @XmlElement(name = "Description") private String description; @XmlElement(name = "MusicUrl") private String musicUrl; @XmlElement(name = "HQMusicUrl") private String hQMusicUrl; @XmlElement(name = "ThumbMediaId") private String thumbMediaId; @XmlElement(name = "MediaId") private String mediaId; @XmlElement(name = "item") private Item item; @XmlElement(name = "Title") private String title; @XmlElement(name = "Description") private String description; @XmlElement(name = "MusicUrl") private String musicUrl; @XmlElement(name = "HQMusicUrl") private String hQMusicUrl; @XmlElement(name = "ThumbMediaId") private String thumbMediaId; public String getMediaId() { return mediaId; } public void setMediaId(String mediaId) { this.mediaId = mediaId; } public Item getItem() { return item; } public void setItem(Item item) { this.item = item; } public String getTitle() { return title; } public void setTitle(String title) { this.title = title; } public String getDescription() { return description; } public void setDescription(String description) { this.description = description; } public String getMusicUrl() { return musicUrl; } public void setMusicUrl(String musicUrl) { this.musicUrl = musicUrl; } public String gethQMusicUrl() { return hQMusicUrl; } public void sethQMusicUrl(String hQMusicUrl) { this.hQMusicUrl = hQMusicUrl; } public String getThumbMediaId() { return thumbMediaId; } public void setThumbMediaId(String thumbMediaId) { this.thumbMediaId = thumbMediaId; } } JAVA/SMTAIServer/src/main/java/com/smtaiserver/smtaiserver/vo/WechatMessageVO.java
@@ -1,66 +1,128 @@ package com.smtaiserver.smtaiserver.vo; import javax.xml.bind.annotation.XmlElement; import javax.xml.bind.annotation.XmlRootElement; import lombok.Setter; @Setter @XmlRootElement(name = "xml") public class WechatMessageVO { /** 接收方帐号(收到的OpenID) */ @XmlElement(name = "ToUserName") private String toUserName; /** * 接收方帐号(收到的OpenID) */ @XmlElement(name = "ToUserName") private String toUserName; /** * 开发者微信号 */ @XmlElement(name = "FromUserName") private String fromUserName; /** * 消息创建时间 (整型) */ @XmlElement(name = "CreateTime") private long createTime; /** 开发者微信号 */ @XmlElement(name = "FromUserName") private String fromUserName; /** * 消息类型 */ @XmlElement(name = "MsgType") private String msgType; /** 消息创建时间 (整型) */ @XmlElement(name = "CreateTime") private long createTime; /** * 消息类型 */ @XmlElement(name = "Content") private String content; /** 消息类型 */ @XmlElement(name = "MsgType") private String msgType; /** * 图片消息 */ @XmlElement(name = "Image") private MediaVo image; /** * 音频 */ @XmlElement(name = "Voice") private MediaVo voice; /** * 视频 */ @XmlElement(name = "Video") private MediaVo video; /** * 音乐 */ @XmlElement(name = "Music") private MediaVo music; /** * 图文 */ @XmlElement(name = "Articles") private MediaVo articles; /** 消息类型 */ @XmlElement(name = "Content") private String content; /** 图片消息 */ @XmlElement(name = "Image") private MediaVo image; /** 音频 */ @XmlElement(name = "Voice") private MediaVo voice; /** 视频 */ @XmlElement(name = "Video") private MediaVo video; /** 音乐 */ @XmlElement(name = "Music") private MediaVo music; /** 图文 */ @XmlElement(name = "Articles") private MediaVo articles; public String getToUserName() { return toUserName; } public void setToUserName(String toUserName) { this.toUserName = toUserName; } public String getFromUserName() { return fromUserName; } public void setFromUserName(String fromUserName) { this.fromUserName = fromUserName; } public long getCreateTime() { return createTime; } public void setCreateTime(long createTime) { this.createTime = createTime; } public String getMsgType() { return msgType; } public void setMsgType(String msgType) { this.msgType = msgType; } public String getContent() { return content; } public void setContent(String content) { this.content = content; } public MediaVo getImage() { return image; } public void setImage(MediaVo image) { this.image = image; } public MediaVo getVoice() { return voice; } public void setVoice(MediaVo voice) { this.voice = voice; } public MediaVo getVideo() { return video; } public void setVideo(MediaVo video) { this.video = video; } public MediaVo getMusic() { return music; } public void setMusic(MediaVo music) { this.music = music; } public MediaVo getArticles() { return articles; } public void setArticles(MediaVo articles) { this.articles = articles; } }