Skip to content

Commit 8c15b3b

Browse files
authored
🎨 #1475 公众号模块增加微信卡券和统计接口的一些缺失字段和枚举类
* ✨ 一些优化,增加枚举类 * ✨ 增加统计字段
1 parent 7a1863b commit 8c15b3b

File tree

5 files changed

+99
-1
lines changed

5 files changed

+99
-1
lines changed

weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/card/Sku.java

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,18 @@
1515
public class Sku implements Serializable {
1616

1717
/**
18-
* 卡券库存的数量,不支持填写0,上限为100000000
18+
* 卡券库存的数量不支持填写0,上限为100000000
1919
*/
2020
@SerializedName("quantity")
2121
private Integer quantity = 100000000;
2222

23+
/**
24+
* 卡券全部库存的数量,上限为100000000。
25+
* https://developers.weixin.qq.com/doc/offiaccount/Cards_and_Offer/Managing_Coupons_Vouchers_and_Cards.html#4
26+
*/
27+
@SerializedName("total_quantity")
28+
private Integer totalQuantity = 100000000;
29+
2330
@Override
2431
public String toString() {
2532
return WxMpGsonBuilder.create().toJson(this);
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
package me.chanjar.weixin.mp.bean.card.enums;
2+
3+
public enum CardCodeType {
4+
5+
CODE_TYPE_TEXT("文本"),
6+
CODE_TYPE_NONE("不显示任何码型"),
7+
CODE_TYPE_ONLY_BARCODE("仅显示一维码"),
8+
CODE_TYPE_ONLY_QRCODE("仅显示二维码"),
9+
CODE_TYPE_BARCODE("一维码"),
10+
CODE_TYPE_QRCODE("二维码");
11+
12+
private String description;
13+
14+
CardCodeType(String description) {
15+
this.description = description;
16+
}
17+
18+
public String getDescription() {
19+
return description;
20+
}
21+
}
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
package me.chanjar.weixin.mp.bean.card.enums;
2+
3+
public enum CardStatusType {
4+
CARD_STATUS_NOT_VERIFY("待审核"),
5+
CARD_STATUS_VERIFY_FAIL("审核失败"),
6+
CARD_STATUS_VERIFY_OK("通过审核"),
7+
CARD_STATUS_DELETE("卡券被商户删除"),
8+
CARD_STATUS_DISPATCH("在公众平台投放过的卡券");
9+
10+
private String description;
11+
12+
CardStatusType(String description) {
13+
this.description = description;
14+
}
15+
16+
public String getDescription() {
17+
return description;
18+
}
19+
}
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
package me.chanjar.weixin.mp.bean.card.enums;
2+
3+
/**
4+
* 会员信息类目半自定义名称,当开发者变更这类类目信息的value值时 可以选择触发系统模板消息通知用户。
5+
*/
6+
public enum CustomFieldNameType {
7+
8+
FIELD_NAME_TYPE_LEVEL("等级"),
9+
FIELD_NAME_TYPE_COUPON("优惠券"),
10+
FIELD_NAME_TYPE_STAMP("印花"),
11+
FIELD_NAME_TYPE_DISCOUNT("折扣"),
12+
FIELD_NAME_TYPE_ACHIEVEMEN("成就"),
13+
FIELD_NAME_TYPE_MILEAGE("里程"),
14+
FIELD_NAME_TYPE_SET_POINTS("集点"),
15+
FIELD_NAME_TYPE_TIMS("次数");
16+
17+
private String description;
18+
19+
CustomFieldNameType(String description) {
20+
this.description = description;
21+
}
22+
23+
public String getDescription() {
24+
return description;
25+
}
26+
}

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

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -198,4 +198,29 @@ public class WxDataCubeArticleTotalDetail implements Serializable {
198198
@SerializedName("feed_share_from_other_cnt")
199199
private Integer feedShareFromOtherCnt;
200200

201+
202+
/**
203+
* intpagefromkanyikanreaduser 看一看来源阅读人数
204+
*/
205+
@SerializedName("int_page_from_kanyikan_read_user")
206+
private Integer intPageFromKanyikanReadUser;
207+
208+
/**
209+
* intpagefromkanyikanreadcount 看一看来源阅读次数
210+
*/
211+
@SerializedName("int_page_from_kanyikan_read_count")
212+
private Integer intPageFromKanyikanReadCount;
213+
214+
/**
215+
* intpagefromsouyisoureaduser 搜一搜来源阅读人数
216+
*/
217+
@SerializedName("int_page_from_souyisou_read_user")
218+
private Integer intPageFromSouyisouReadUser;
219+
220+
/**
221+
* intpagefromsouyisoureadcount 搜一搜来源阅读次数
222+
*/
223+
@SerializedName("int_page_from_souyisou_read_count")
224+
private Integer intPageFromSouyisouReadCount;
225+
201226
}

0 commit comments

Comments
 (0)