Skip to content

Commit 2ac0391

Browse files
committed
🎨 binarywang#2028 【公众号】获取图文群发总数据接口返回增加确实字段
1 parent 63edc07 commit 2ac0391

3 files changed

Lines changed: 66 additions & 19 deletions

File tree

weixin-java-mp/src/main/java/me/chanjar/weixin/mp/api/WxMpDataCubeService.java

Lines changed: 48 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@ public interface WxMpDataCubeService {
2424
*
2525
* @param beginDate 开始时间
2626
* @param endDate 最大时间跨度7天,endDate不能早于begingDate
27+
* @return the user summary
28+
* @throws WxErrorException the wx error exception
2729
*/
2830
List<WxDataCubeUserSummary> getUserSummary(Date beginDate, Date endDate) throws WxErrorException;
2931

@@ -36,6 +38,8 @@ public interface WxMpDataCubeService {
3638
*
3739
* @param beginDate 开始时间
3840
* @param endDate 最大时间跨度7天,endDate不能早于begingDate
41+
* @return the user cumulate
42+
* @throws WxErrorException the wx error exception
3943
*/
4044
List<WxDataCubeUserCumulate> getUserCumulate(Date beginDate, Date endDate) throws WxErrorException;
4145

@@ -50,6 +54,8 @@ public interface WxMpDataCubeService {
5054
*
5155
* @param beginDate 开始时间
5256
* @param endDate 最大时间跨度1天,endDate不能早于begingDate
57+
* @return the article summary
58+
* @throws WxErrorException the wx error exception
5359
*/
5460
List<WxDataCubeArticleResult> getArticleSummary(Date beginDate, Date endDate) throws WxErrorException;
5561

@@ -60,7 +66,9 @@ public interface WxMpDataCubeService {
6066
* 接口url格式:https://api.weixin.qq.com/datacube/getarticletotal?access_token=ACCESS_TOKEN
6167
*
6268
* @param beginDate 开始时间
63-
* @param endDate 最大时间跨度1天,endDate不能早于begingDate
69+
* @param endDate 最大时间跨度1天,endDate不能早于begingDate
70+
* @return the article total
71+
* @throws WxErrorException the wx error exception
6472
*/
6573
List<WxDataCubeArticleTotal> getArticleTotal(Date beginDate, Date endDate) throws WxErrorException;
6674

@@ -71,7 +79,9 @@ public interface WxMpDataCubeService {
7179
* 接口url格式:https://api.weixin.qq.com/datacube/getuserread?access_token=ACCESS_TOKEN
7280
*
7381
* @param beginDate 开始时间
74-
* @param endDate 最大时间跨度3天,endDate不能早于begingDate
82+
* @param endDate 最大时间跨度3天,endDate不能早于begingDate
83+
* @return the user read
84+
* @throws WxErrorException the wx error exception
7585
*/
7686
List<WxDataCubeArticleResult> getUserRead(Date beginDate, Date endDate) throws WxErrorException;
7787

@@ -82,7 +92,9 @@ public interface WxMpDataCubeService {
8292
* 接口url格式:https://api.weixin.qq.com/datacube/getuserreadhour?access_token=ACCESS_TOKEN
8393
*
8494
* @param beginDate 开始时间
85-
* @param endDate 最大时间跨度1天,endDate不能早于begingDate
95+
* @param endDate 最大时间跨度1天,endDate不能早于begingDate
96+
* @return the user read hour
97+
* @throws WxErrorException the wx error exception
8698
*/
8799
List<WxDataCubeArticleResult> getUserReadHour(Date beginDate, Date endDate) throws WxErrorException;
88100

@@ -93,7 +105,9 @@ public interface WxMpDataCubeService {
93105
* 接口url格式:https://api.weixin.qq.com/datacube/getusershare?access_token=ACCESS_TOKEN
94106
*
95107
* @param beginDate 开始时间
96-
* @param endDate 最大时间跨度7天,endDate不能早于begingDate
108+
* @param endDate 最大时间跨度7天,endDate不能早于begingDate
109+
* @return the user share
110+
* @throws WxErrorException the wx error exception
97111
*/
98112
List<WxDataCubeArticleResult> getUserShare(Date beginDate, Date endDate) throws WxErrorException;
99113

@@ -104,7 +118,9 @@ public interface WxMpDataCubeService {
104118
* 接口url格式:https://api.weixin.qq.com/datacube/getusersharehour?access_token=ACCESS_TOKEN
105119
*
106120
* @param beginDate 开始时间
107-
* @param endDate 最大时间跨度1天,endDate不能早于begingDate
121+
* @param endDate 最大时间跨度1天,endDate不能早于begingDate
122+
* @return the user share hour
123+
* @throws WxErrorException the wx error exception
108124
*/
109125
List<WxDataCubeArticleResult> getUserShareHour(Date beginDate, Date endDate) throws WxErrorException;
110126

@@ -117,7 +133,9 @@ public interface WxMpDataCubeService {
117133
* 接口url格式:https://api.weixin.qq.com/datacube/getupstreammsg?access_token=ACCESS_TOKEN
118134
*
119135
* @param beginDate 开始时间
120-
* @param endDate 最大时间跨度7天,endDate不能早于begingDate
136+
* @param endDate 最大时间跨度7天,endDate不能早于begingDate
137+
* @return the upstream msg
138+
* @throws WxErrorException the wx error exception
121139
*/
122140
List<WxDataCubeMsgResult> getUpstreamMsg(Date beginDate, Date endDate) throws WxErrorException;
123141

@@ -128,7 +146,9 @@ public interface WxMpDataCubeService {
128146
* 接口url格式:https://api.weixin.qq.com/datacube/getupstreammsghour?access_token=ACCESS_TOKEN
129147
*
130148
* @param beginDate 开始时间
131-
* @param endDate 最大时间跨度1天,endDate不能早于begingDate
149+
* @param endDate 最大时间跨度1天,endDate不能早于begingDate
150+
* @return the upstream msg hour
151+
* @throws WxErrorException the wx error exception
132152
*/
133153
List<WxDataCubeMsgResult> getUpstreamMsgHour(Date beginDate, Date endDate) throws WxErrorException;
134154

@@ -139,7 +159,9 @@ public interface WxMpDataCubeService {
139159
* 接口url格式:https://api.weixin.qq.com/datacube/getupstreammsgweek?access_token=ACCESS_TOKEN
140160
*
141161
* @param beginDate 开始时间
142-
* @param endDate 最大时间跨度30天,endDate不能早于begingDate
162+
* @param endDate 最大时间跨度30天,endDate不能早于begingDate
163+
* @return the upstream msg week
164+
* @throws WxErrorException the wx error exception
143165
*/
144166
List<WxDataCubeMsgResult> getUpstreamMsgWeek(Date beginDate, Date endDate) throws WxErrorException;
145167

@@ -150,7 +172,9 @@ public interface WxMpDataCubeService {
150172
* 接口url格式:https://api.weixin.qq.com/datacube/getupstreammsgmonth?access_token=ACCESS_TOKEN
151173
*
152174
* @param beginDate 开始时间
153-
* @param endDate 最大时间跨度30天,endDate不能早于begingDate
175+
* @param endDate 最大时间跨度30天,endDate不能早于begingDate
176+
* @return the upstream msg month
177+
* @throws WxErrorException the wx error exception
154178
*/
155179
List<WxDataCubeMsgResult> getUpstreamMsgMonth(Date beginDate, Date endDate) throws WxErrorException;
156180

@@ -161,7 +185,9 @@ public interface WxMpDataCubeService {
161185
* 接口url格式:https://api.weixin.qq.com/datacube/getupstreammsgdist?access_token=ACCESS_TOKEN
162186
*
163187
* @param beginDate 开始时间
164-
* @param endDate 最大时间跨度15天,endDate不能早于begingDate
188+
* @param endDate 最大时间跨度15天,endDate不能早于begingDate
189+
* @return the upstream msg dist
190+
* @throws WxErrorException the wx error exception
165191
*/
166192
List<WxDataCubeMsgResult> getUpstreamMsgDist(Date beginDate, Date endDate) throws WxErrorException;
167193

@@ -172,7 +198,9 @@ public interface WxMpDataCubeService {
172198
* 接口url格式:https://api.weixin.qq.com/datacube/getupstreammsgdistweek?access_token=ACCESS_TOKEN
173199
*
174200
* @param beginDate 开始时间
175-
* @param endDate 最大时间跨度30天,endDate不能早于begingDate
201+
* @param endDate 最大时间跨度30天,endDate不能早于begingDate
202+
* @return the upstream msg dist week
203+
* @throws WxErrorException the wx error exception
176204
*/
177205
List<WxDataCubeMsgResult> getUpstreamMsgDistWeek(Date beginDate, Date endDate) throws WxErrorException;
178206

@@ -183,7 +211,9 @@ public interface WxMpDataCubeService {
183211
* 接口url格式:https://api.weixin.qq.com/datacube/getupstreammsgdistmonth?access_token=ACCESS_TOKEN
184212
*
185213
* @param beginDate 开始时间
186-
* @param endDate 最大时间跨度30天,endDate不能早于begingDate
214+
* @param endDate 最大时间跨度30天,endDate不能早于begingDate
215+
* @return the upstream msg dist month
216+
* @throws WxErrorException the wx error exception
187217
*/
188218
List<WxDataCubeMsgResult> getUpstreamMsgDistMonth(Date beginDate, Date endDate) throws WxErrorException;
189219

@@ -196,7 +226,9 @@ public interface WxMpDataCubeService {
196226
* 接口url格式:https://api.weixin.qq.com/datacube/getinterfacesummary?access_token=ACCESS_TOKEN
197227
*
198228
* @param beginDate 开始时间
199-
* @param endDate 最大时间跨度30天,endDate不能早于begingDate
229+
* @param endDate 最大时间跨度30天,endDate不能早于begingDate
230+
* @return the interface summary
231+
* @throws WxErrorException the wx error exception
200232
*/
201233
List<WxDataCubeInterfaceResult> getInterfaceSummary(Date beginDate, Date endDate) throws WxErrorException;
202234

@@ -207,7 +239,9 @@ public interface WxMpDataCubeService {
207239
* 接口url格式:https://api.weixin.qq.com/datacube/getinterfacesummaryhour?access_token=ACCESS_TOKEN
208240
*
209241
* @param beginDate 开始时间
210-
* @param endDate 最大时间跨度1天,endDate不能早于begingDate
242+
* @param endDate 最大时间跨度1天,endDate不能早于begingDate
243+
* @return the interface summary hour
244+
* @throws WxErrorException the wx error exception
211245
*/
212246
List<WxDataCubeInterfaceResult> getInterfaceSummaryHour(Date beginDate, Date endDate) throws WxErrorException;
213247

weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/datacube/WxDataCubeArticleTotal.java

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,19 +28,32 @@ public class WxDataCubeArticleTotal extends WxDataCubeBaseResult {
2828
private String msgId;
2929

3030
/**
31-
* title.
3231
* 图文消息的标题
3332
*/
3433
@SerializedName("title")
3534
private String title;
3635

36+
/**
37+
* 文章地址
38+
*/
39+
@SerializedName("url")
40+
private String url;
41+
3742
/**
3843
* details.
3944
* 详细信息
4045
*/
4146
@SerializedName("details")
4247
private List<WxDataCubeArticleTotalDetail> details;
4348

49+
/**
50+
* user_source
51+
* 在获取图文统计数据、图文阅读分时数据时才有该字段,代表用户从哪里进入来阅读该图文。
52+
* 99999999.全部;0:会话;1.好友;2.朋友圈;3.腾讯微博;4.历史消息页;5.其他;6.看一看;7.搜一搜;
53+
*/
54+
@SerializedName("user_source")
55+
private Integer userSource;
56+
4457
public static List<WxDataCubeArticleTotal> fromJson(String json) {
4558
return WxMpGsonBuilder.create().fromJson(
4659
GsonParser.parse(json).get("list"),

weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/datacube/WxDataCubeArticleTotalDetail.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -200,25 +200,25 @@ public class WxDataCubeArticleTotalDetail implements Serializable {
200200

201201

202202
/**
203-
* intpagefromkanyikanreaduser 看一看来源阅读人数
203+
* 看一看来源阅读人数
204204
*/
205205
@SerializedName("int_page_from_kanyikan_read_user")
206206
private Integer intPageFromKanyikanReadUser;
207207

208208
/**
209-
* intpagefromkanyikanreadcount 看一看来源阅读次数
209+
* 看一看来源阅读次数
210210
*/
211211
@SerializedName("int_page_from_kanyikan_read_count")
212212
private Integer intPageFromKanyikanReadCount;
213213

214214
/**
215-
* intpagefromsouyisoureaduser 搜一搜来源阅读人数
215+
* 搜一搜来源阅读人数
216216
*/
217217
@SerializedName("int_page_from_souyisou_read_user")
218218
private Integer intPageFromSouyisouReadUser;
219219

220220
/**
221-
* intpagefromsouyisoureadcount 搜一搜来源阅读次数
221+
* 搜一搜来源阅读次数
222222
*/
223223
@SerializedName("int_page_from_souyisou_read_count")
224224
private Integer intPageFromSouyisouReadCount;

0 commit comments

Comments
 (0)