diff --git a/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/api/WxMpDataCubeService.java b/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/api/WxMpDataCubeService.java index c1b35bee5..cd2fda835 100644 --- a/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/api/WxMpDataCubeService.java +++ b/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/api/WxMpDataCubeService.java @@ -24,6 +24,8 @@ public interface WxMpDataCubeService { * * @param beginDate 开始时间 * @param endDate 最大时间跨度7天,endDate不能早于begingDate + * @return the user summary + * @throws WxErrorException the wx error exception */ List getUserSummary(Date beginDate, Date endDate) throws WxErrorException; @@ -36,6 +38,8 @@ public interface WxMpDataCubeService { * * @param beginDate 开始时间 * @param endDate 最大时间跨度7天,endDate不能早于begingDate + * @return the user cumulate + * @throws WxErrorException the wx error exception */ List getUserCumulate(Date beginDate, Date endDate) throws WxErrorException; @@ -50,6 +54,8 @@ public interface WxMpDataCubeService { * * @param beginDate 开始时间 * @param endDate 最大时间跨度1天,endDate不能早于begingDate + * @return the article summary + * @throws WxErrorException the wx error exception */ List getArticleSummary(Date beginDate, Date endDate) throws WxErrorException; @@ -60,7 +66,9 @@ public interface WxMpDataCubeService { * 接口url格式:https://api.weixin.qq.com/datacube/getarticletotal?access_token=ACCESS_TOKEN * * @param beginDate 开始时间 - * @param endDate 最大时间跨度1天,endDate不能早于begingDate + * @param endDate 最大时间跨度1天,endDate不能早于begingDate + * @return the article total + * @throws WxErrorException the wx error exception */ List getArticleTotal(Date beginDate, Date endDate) throws WxErrorException; @@ -71,7 +79,9 @@ public interface WxMpDataCubeService { * 接口url格式:https://api.weixin.qq.com/datacube/getuserread?access_token=ACCESS_TOKEN * * @param beginDate 开始时间 - * @param endDate 最大时间跨度3天,endDate不能早于begingDate + * @param endDate 最大时间跨度3天,endDate不能早于begingDate + * @return the user read + * @throws WxErrorException the wx error exception */ List getUserRead(Date beginDate, Date endDate) throws WxErrorException; @@ -82,7 +92,9 @@ public interface WxMpDataCubeService { * 接口url格式:https://api.weixin.qq.com/datacube/getuserreadhour?access_token=ACCESS_TOKEN * * @param beginDate 开始时间 - * @param endDate 最大时间跨度1天,endDate不能早于begingDate + * @param endDate 最大时间跨度1天,endDate不能早于begingDate + * @return the user read hour + * @throws WxErrorException the wx error exception */ List getUserReadHour(Date beginDate, Date endDate) throws WxErrorException; @@ -93,7 +105,9 @@ public interface WxMpDataCubeService { * 接口url格式:https://api.weixin.qq.com/datacube/getusershare?access_token=ACCESS_TOKEN * * @param beginDate 开始时间 - * @param endDate 最大时间跨度7天,endDate不能早于begingDate + * @param endDate 最大时间跨度7天,endDate不能早于begingDate + * @return the user share + * @throws WxErrorException the wx error exception */ List getUserShare(Date beginDate, Date endDate) throws WxErrorException; @@ -104,7 +118,9 @@ public interface WxMpDataCubeService { * 接口url格式:https://api.weixin.qq.com/datacube/getusersharehour?access_token=ACCESS_TOKEN * * @param beginDate 开始时间 - * @param endDate 最大时间跨度1天,endDate不能早于begingDate + * @param endDate 最大时间跨度1天,endDate不能早于begingDate + * @return the user share hour + * @throws WxErrorException the wx error exception */ List getUserShareHour(Date beginDate, Date endDate) throws WxErrorException; @@ -117,7 +133,9 @@ public interface WxMpDataCubeService { * 接口url格式:https://api.weixin.qq.com/datacube/getupstreammsg?access_token=ACCESS_TOKEN * * @param beginDate 开始时间 - * @param endDate 最大时间跨度7天,endDate不能早于begingDate + * @param endDate 最大时间跨度7天,endDate不能早于begingDate + * @return the upstream msg + * @throws WxErrorException the wx error exception */ List getUpstreamMsg(Date beginDate, Date endDate) throws WxErrorException; @@ -128,7 +146,9 @@ public interface WxMpDataCubeService { * 接口url格式:https://api.weixin.qq.com/datacube/getupstreammsghour?access_token=ACCESS_TOKEN * * @param beginDate 开始时间 - * @param endDate 最大时间跨度1天,endDate不能早于begingDate + * @param endDate 最大时间跨度1天,endDate不能早于begingDate + * @return the upstream msg hour + * @throws WxErrorException the wx error exception */ List getUpstreamMsgHour(Date beginDate, Date endDate) throws WxErrorException; @@ -139,7 +159,9 @@ public interface WxMpDataCubeService { * 接口url格式:https://api.weixin.qq.com/datacube/getupstreammsgweek?access_token=ACCESS_TOKEN * * @param beginDate 开始时间 - * @param endDate 最大时间跨度30天,endDate不能早于begingDate + * @param endDate 最大时间跨度30天,endDate不能早于begingDate + * @return the upstream msg week + * @throws WxErrorException the wx error exception */ List getUpstreamMsgWeek(Date beginDate, Date endDate) throws WxErrorException; @@ -150,7 +172,9 @@ public interface WxMpDataCubeService { * 接口url格式:https://api.weixin.qq.com/datacube/getupstreammsgmonth?access_token=ACCESS_TOKEN * * @param beginDate 开始时间 - * @param endDate 最大时间跨度30天,endDate不能早于begingDate + * @param endDate 最大时间跨度30天,endDate不能早于begingDate + * @return the upstream msg month + * @throws WxErrorException the wx error exception */ List getUpstreamMsgMonth(Date beginDate, Date endDate) throws WxErrorException; @@ -161,7 +185,9 @@ public interface WxMpDataCubeService { * 接口url格式:https://api.weixin.qq.com/datacube/getupstreammsgdist?access_token=ACCESS_TOKEN * * @param beginDate 开始时间 - * @param endDate 最大时间跨度15天,endDate不能早于begingDate + * @param endDate 最大时间跨度15天,endDate不能早于begingDate + * @return the upstream msg dist + * @throws WxErrorException the wx error exception */ List getUpstreamMsgDist(Date beginDate, Date endDate) throws WxErrorException; @@ -172,7 +198,9 @@ public interface WxMpDataCubeService { * 接口url格式:https://api.weixin.qq.com/datacube/getupstreammsgdistweek?access_token=ACCESS_TOKEN * * @param beginDate 开始时间 - * @param endDate 最大时间跨度30天,endDate不能早于begingDate + * @param endDate 最大时间跨度30天,endDate不能早于begingDate + * @return the upstream msg dist week + * @throws WxErrorException the wx error exception */ List getUpstreamMsgDistWeek(Date beginDate, Date endDate) throws WxErrorException; @@ -183,7 +211,9 @@ public interface WxMpDataCubeService { * 接口url格式:https://api.weixin.qq.com/datacube/getupstreammsgdistmonth?access_token=ACCESS_TOKEN * * @param beginDate 开始时间 - * @param endDate 最大时间跨度30天,endDate不能早于begingDate + * @param endDate 最大时间跨度30天,endDate不能早于begingDate + * @return the upstream msg dist month + * @throws WxErrorException the wx error exception */ List getUpstreamMsgDistMonth(Date beginDate, Date endDate) throws WxErrorException; @@ -196,7 +226,9 @@ public interface WxMpDataCubeService { * 接口url格式:https://api.weixin.qq.com/datacube/getinterfacesummary?access_token=ACCESS_TOKEN * * @param beginDate 开始时间 - * @param endDate 最大时间跨度30天,endDate不能早于begingDate + * @param endDate 最大时间跨度30天,endDate不能早于begingDate + * @return the interface summary + * @throws WxErrorException the wx error exception */ List getInterfaceSummary(Date beginDate, Date endDate) throws WxErrorException; @@ -207,7 +239,9 @@ public interface WxMpDataCubeService { * 接口url格式:https://api.weixin.qq.com/datacube/getinterfacesummaryhour?access_token=ACCESS_TOKEN * * @param beginDate 开始时间 - * @param endDate 最大时间跨度1天,endDate不能早于begingDate + * @param endDate 最大时间跨度1天,endDate不能早于begingDate + * @return the interface summary hour + * @throws WxErrorException the wx error exception */ List getInterfaceSummaryHour(Date beginDate, Date endDate) throws WxErrorException; diff --git a/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/datacube/WxDataCubeArticleTotal.java b/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/datacube/WxDataCubeArticleTotal.java index bb732c34d..630a79621 100644 --- a/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/datacube/WxDataCubeArticleTotal.java +++ b/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/datacube/WxDataCubeArticleTotal.java @@ -28,12 +28,17 @@ public class WxDataCubeArticleTotal extends WxDataCubeBaseResult { private String msgId; /** - * title. * 图文消息的标题 */ @SerializedName("title") private String title; + /** + * 文章地址 + */ + @SerializedName("url") + private String url; + /** * details. * 详细信息 @@ -41,6 +46,14 @@ public class WxDataCubeArticleTotal extends WxDataCubeBaseResult { @SerializedName("details") private List details; + /** + * user_source + * 在获取图文统计数据、图文阅读分时数据时才有该字段,代表用户从哪里进入来阅读该图文。 + * 99999999.全部;0:会话;1.好友;2.朋友圈;3.腾讯微博;4.历史消息页;5.其他;6.看一看;7.搜一搜; + */ + @SerializedName("user_source") + private Integer userSource; + public static List fromJson(String json) { return WxMpGsonBuilder.create().fromJson( GsonParser.parse(json).get("list"), diff --git a/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/datacube/WxDataCubeArticleTotalDetail.java b/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/datacube/WxDataCubeArticleTotalDetail.java index a07974f42..95001b6af 100644 --- a/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/datacube/WxDataCubeArticleTotalDetail.java +++ b/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/datacube/WxDataCubeArticleTotalDetail.java @@ -200,25 +200,25 @@ public class WxDataCubeArticleTotalDetail implements Serializable { /** - * intpagefromkanyikanreaduser 看一看来源阅读人数 + * 看一看来源阅读人数 */ @SerializedName("int_page_from_kanyikan_read_user") private Integer intPageFromKanyikanReadUser; /** - * intpagefromkanyikanreadcount 看一看来源阅读次数 + * 看一看来源阅读次数 */ @SerializedName("int_page_from_kanyikan_read_count") private Integer intPageFromKanyikanReadCount; /** - * intpagefromsouyisoureaduser 搜一搜来源阅读人数 + * 搜一搜来源阅读人数 */ @SerializedName("int_page_from_souyisou_read_user") private Integer intPageFromSouyisouReadUser; /** - * intpagefromsouyisoureadcount 搜一搜来源阅读次数 + * 搜一搜来源阅读次数 */ @SerializedName("int_page_from_souyisou_read_count") private Integer intPageFromSouyisouReadCount;