Skip to content

Commit 5f88773

Browse files
committed
事件常量根据分类创建静态内部类进行管理
1 parent 25cf370 commit 5f88773

File tree

1 file changed

+87
-46
lines changed

1 file changed

+87
-46
lines changed

weixin-java-mp/src/main/java/me/chanjar/weixin/mp/constant/WxMpEventConstants.java

Lines changed: 87 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -8,65 +8,106 @@
88
* </pre>
99
*/
1010
public class WxMpEventConstants {
11-
//以下为卡券相关事件
12-
public static final String EVT_CARD_PASS_CHECK = "card_pass_check";
13-
public static final String EVT_CARD_NOT_PASS_CHECK = "card_not_pass_check";
14-
public static final String EVT_USER_GET_CARD = "user_get_card";
1511
/**
16-
* 卡券转赠事件
12+
* 门店审核事件
1713
*/
18-
public static final String EVT_USER_GIFTING_CARD = "user_gifting_card";
19-
public static final String EVT_USER_DEL_CARD = "user_del_card";
20-
public static final String EVT_USER_CONSUME_CARD = "user_consume_card";
21-
public static final String EVT_USER_PAY_FROM_PAY_CELL = "user_pay_from_pay_cell";
22-
public static final String EVT_USER_VIEW_CARD = "user_view_card";
23-
public static final String EVT_USER_ENTER_SESSION_FROM_CARD = "user_enter_session_from_card";
24-
public static final String EVT_CARD_SKU_REMIND = "card_sku_remind"; // 库存报警
14+
public static final String POI_CHECK_NOTIFY = "poi_check_notify";
15+
2516
/**
26-
* 会员卡内容更新事件
17+
* 接收会员信息事件
2718
*/
28-
public static final String EVT_UPDATE_MEMBER_CARD = "update_member_card";
19+
public static final String SUBMIT_MEMBERCARD_USER_INFO = "submit_membercard_user_info";
20+
2921
/**
30-
* 券点流水详情事件
22+
* 微信摇一摇周边>>摇一摇事件通知
3123
*/
32-
public static final String EVT_CARD_PAY_ORDER = "card_pay_order";
24+
public static final String SHAKEAROUND_USER_SHAKE = "ShakearoundUserShake";
3325

34-
//以下为客服相关事件
35-
public static final String EVT_KF_CREATE_SESSION = "kf_create_session"; // 客服接入会话
36-
public static final String EVT_KF_CLOSE_SESSION = "kf_close_session"; // 客服关闭会话
37-
public static final String EVT_KF_SWITCH_SESSION = "kf_switch_session"; // 客服转接会话
38-
public static final String EVT_POI_CHECK_NOTIFY = "poi_check_notify"; //门店审核事件推送
39-
public static final String EVT_SUBMIT_MEMBERCARD_USER_INFO = "submit_membercard_user_info"; //接收会员信息事件推送
4026

41-
//以下为微信认证事件
42-
/**
43-
* 资质认证成功
44-
*/
45-
public static final String EVT_QUALIFICATION_VERIFY_SUCCESS = "qualification_verify_success";
46-
/**
47-
* 资质认证失败
48-
*/
49-
public static final String EVT_QUALIFICATION_VERIFY_FAIL = "qualification_verify_fail";
50-
/**
51-
* 名称认证成功
52-
*/
53-
public static final String EVT_NAMING_VERIFY_SUCCESS = "naming_verify_success";
54-
/**
55-
* 名称认证失败
56-
*/
57-
public static final String EVT_NAMING_VERIFY_FAIL = "naming_verify_fail";
5827
/**
59-
* 年审通知
28+
* 卡券相关事件
6029
*/
61-
public static final String EVT_ANNUAL_RENEW = "annual_renew";
30+
public static class Card {
31+
public static final String CARD_PASS_CHECK = "card_pass_check";
32+
public static final String CARD_NOT_PASS_CHECK = "card_not_pass_check";
33+
public static final String USER_GET_CARD = "user_get_card";
34+
public static final String USER_DEL_CARD = "user_del_card";
35+
public static final String USER_CONSUME_CARD = "user_consume_card";
36+
public static final String USER_PAY_FROM_PAY_CELL = "user_pay_from_pay_cell";
37+
public static final String USER_VIEW_CARD = "user_view_card";
38+
public static final String USER_ENTER_SESSION_FROM_CARD = "user_enter_session_from_card";
39+
40+
/**
41+
* 卡券转赠事件
42+
*/
43+
public static final String USER_GIFTING_CARD = "user_gifting_card";
44+
45+
/**
46+
* 库存报警
47+
*/
48+
public static final String CARD_SKU_REMIND = "card_sku_remind";
49+
50+
/**
51+
* 会员卡内容更新事件
52+
*/
53+
public static final String UPDATE_MEMBER_CARD = "update_member_card";
54+
55+
/**
56+
* 券点流水详情事件
57+
*/
58+
public static final String CARD_PAY_ORDER = "card_pay_order";
59+
}
60+
61+
6262
/**
63-
* 认证过期失效通知
63+
* 客服相关事件
6464
*/
65-
public static final String EVT_VERIFY_EXPIRED = "verify_expired";
65+
public static class CustomerService {
66+
/**
67+
* 客服接入会话
68+
*/
69+
public static final String KF_CREATE_SESSION = "kf_create_session";
70+
71+
/**
72+
* 客服关闭会话
73+
*/
74+
public static final String KF_CLOSE_SESSION = "kf_close_session";
75+
76+
/**
77+
* 客服转接会话
78+
*/
79+
public static final String KF_SWITCH_SESSION = "kf_switch_session";
80+
}
6681

67-
//以下为微信摇一摇相关事件
6882
/**
69-
* 微信摇一摇周边>>摇一摇事件通知
83+
* 微信认证事件
7084
*/
71-
public static final String EVT_SHAKEAROUND_USER_SHAKE = "ShakearoundUserShake";
85+
public static class Qualification {
86+
87+
/**
88+
* 资质认证成功
89+
*/
90+
public static final String QUALIFICATION_VERIFY_SUCCESS = "qualification_verify_success";
91+
/**
92+
* 资质认证失败
93+
*/
94+
public static final String QUALIFICATION_VERIFY_FAIL = "qualification_verify_fail";
95+
/**
96+
* 名称认证成功
97+
*/
98+
public static final String NAMING_VERIFY_SUCCESS = "naming_verify_success";
99+
/**
100+
* 名称认证失败
101+
*/
102+
public static final String NAMING_VERIFY_FAIL = "naming_verify_fail";
103+
/**
104+
* 年审通知
105+
*/
106+
public static final String ANNUAL_RENEW = "annual_renew";
107+
/**
108+
* 认证过期失效通知
109+
*/
110+
public static final String VERIFY_EXPIRED = "verify_expired";
111+
}
112+
72113
}

0 commit comments

Comments
 (0)