mirror of
https://gitee.com/binary/weixin-java-tools.git
synced 2025-10-29 17:48:50 +08:00
🆕 #2305【公众号】微信事件消息类增加群发图文的url结果属性
This commit is contained in:
@ -0,0 +1,48 @@
|
|||||||
|
package me.chanjar.weixin.mp.bean.message;
|
||||||
|
|
||||||
|
import com.thoughtworks.xstream.annotations.XStreamAlias;
|
||||||
|
import com.thoughtworks.xstream.annotations.XStreamConverter;
|
||||||
|
import lombok.Data;
|
||||||
|
import me.chanjar.weixin.common.util.xml.XStreamCDataConverter;
|
||||||
|
import me.chanjar.weixin.mp.util.json.WxMpGsonBuilder;
|
||||||
|
|
||||||
|
import java.io.Serializable;
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @author plw on 2021/9/7 10:39 AM.
|
||||||
|
* @version 1.0
|
||||||
|
*/
|
||||||
|
@XStreamAlias("ArticleUrlResult")
|
||||||
|
@Data
|
||||||
|
public class ArticleUrlResult implements Serializable {
|
||||||
|
|
||||||
|
@XStreamAlias("ResultList")
|
||||||
|
private List<Item> resultList;
|
||||||
|
|
||||||
|
@XStreamAlias("Count")
|
||||||
|
private Long count;
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String toString() {
|
||||||
|
return WxMpGsonBuilder.create().toJson(this);
|
||||||
|
}
|
||||||
|
|
||||||
|
@XStreamAlias("item")
|
||||||
|
@Data
|
||||||
|
public static class Item implements Serializable {
|
||||||
|
|
||||||
|
@XStreamAlias("ArticleIdx")
|
||||||
|
private String articleIdx;
|
||||||
|
|
||||||
|
@XStreamAlias("ArticleUrl")
|
||||||
|
@XStreamConverter(value = XStreamCDataConverter.class)
|
||||||
|
private String articleUrl;
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String toString() {
|
||||||
|
return WxMpGsonBuilder.create().toJson(this);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
@ -353,6 +353,9 @@ public class WxMpXmlMessage implements Serializable {
|
|||||||
@XStreamAlias("SendLocationInfo")
|
@XStreamAlias("SendLocationInfo")
|
||||||
private SendLocationInfo sendLocationInfo = new SendLocationInfo();
|
private SendLocationInfo sendLocationInfo = new SendLocationInfo();
|
||||||
|
|
||||||
|
@XStreamAlias("ArticleUrlResult")
|
||||||
|
private ArticleUrlResult articleUrlResult = new ArticleUrlResult();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 审核不通过原因
|
* 审核不通过原因
|
||||||
*/
|
*/
|
||||||
@ -446,7 +449,7 @@ public class WxMpXmlMessage implements Serializable {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* 审核结果,成功succ 或失败fail.
|
* 审核结果,成功succ 或失败fail.
|
||||||
*
|
* <p>
|
||||||
* 在商品审核结果推送时,verify_ok表示审核通过,verify_not_pass表示审核未通过。
|
* 在商品审核结果推送时,verify_ok表示审核通过,verify_not_pass表示审核未通过。
|
||||||
*/
|
*/
|
||||||
@XStreamAlias("Result")
|
@XStreamAlias("Result")
|
||||||
|
|||||||
Reference in New Issue
Block a user