Skip to content

Commit

Permalink
🎨 #1475 公众号模块增加微信卡券和统计接口的一些缺失字段和枚举类
Browse files Browse the repository at this point in the history
* ✨ 一些优化,增加枚举类

* ✨ 增加统计字段
  • Loading branch information
silloy committed Mar 28, 2020
1 parent 7a1863b commit 8c15b3b
Show file tree
Hide file tree
Showing 5 changed files with 99 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,18 @@
public class Sku implements Serializable {

/**
* 卡券库存的数量,不支持填写0,上限为100000000
* 卡券库存的数量不支持填写0,上限为100000000
*/
@SerializedName("quantity")
private Integer quantity = 100000000;

/**
* 卡券全部库存的数量,上限为100000000。
* https://developers.weixin.qq.com/doc/offiaccount/Cards_and_Offer/Managing_Coupons_Vouchers_and_Cards.html#4
*/
@SerializedName("total_quantity")
private Integer totalQuantity = 100000000;

@Override
public String toString() {
return WxMpGsonBuilder.create().toJson(this);
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
package me.chanjar.weixin.mp.bean.card.enums;

public enum CardCodeType {

CODE_TYPE_TEXT("文本"),
CODE_TYPE_NONE("不显示任何码型"),
CODE_TYPE_ONLY_BARCODE("仅显示一维码"),
CODE_TYPE_ONLY_QRCODE("仅显示二维码"),
CODE_TYPE_BARCODE("一维码"),
CODE_TYPE_QRCODE("二维码");

private String description;

CardCodeType(String description) {
this.description = description;
}

public String getDescription() {
return description;
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
package me.chanjar.weixin.mp.bean.card.enums;

public enum CardStatusType {
CARD_STATUS_NOT_VERIFY("待审核"),
CARD_STATUS_VERIFY_FAIL("审核失败"),
CARD_STATUS_VERIFY_OK("通过审核"),
CARD_STATUS_DELETE("卡券被商户删除"),
CARD_STATUS_DISPATCH("在公众平台投放过的卡券");

private String description;

CardStatusType(String description) {
this.description = description;
}

public String getDescription() {
return description;
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
package me.chanjar.weixin.mp.bean.card.enums;

/**
* 会员信息类目半自定义名称,当开发者变更这类类目信息的value值时 可以选择触发系统模板消息通知用户。
*/
public enum CustomFieldNameType {

FIELD_NAME_TYPE_LEVEL("等级"),
FIELD_NAME_TYPE_COUPON("优惠券"),
FIELD_NAME_TYPE_STAMP("印花"),
FIELD_NAME_TYPE_DISCOUNT("折扣"),
FIELD_NAME_TYPE_ACHIEVEMEN("成就"),
FIELD_NAME_TYPE_MILEAGE("里程"),
FIELD_NAME_TYPE_SET_POINTS("集点"),
FIELD_NAME_TYPE_TIMS("次数");

private String description;

CustomFieldNameType(String description) {
this.description = description;
}

public String getDescription() {
return description;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -198,4 +198,29 @@ public class WxDataCubeArticleTotalDetail implements Serializable {
@SerializedName("feed_share_from_other_cnt")
private Integer feedShareFromOtherCnt;


/**
* 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;

}

0 comments on commit 8c15b3b

Please sign in to comment.