forked from chanjarster/weixin-java-tools
-
-
Notifications
You must be signed in to change notification settings - Fork 8.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* ✨ 一些优化,增加枚举类 * ✨ 增加统计字段
- Loading branch information
Showing
5 changed files
with
99 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
21 changes: 21 additions & 0 deletions
21
weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/card/enums/CardCodeType.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | ||
} | ||
} |
19 changes: 19 additions & 0 deletions
19
weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/card/enums/CardStatusType.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | ||
} | ||
} |
26 changes: 26 additions & 0 deletions
26
weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/card/enums/CustomFieldNameType.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters