DracConstant.java
5.38 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
package cn.com.glsx.entmicro.constants;
import lombok.Getter;
/**
* @author wangxw
* @version 1.0.0
* @ClassName constants.java
* @description: 引流获客-常量值
* @createTime 2021年11月10日 16:42:00
*/
public class DracConstant {
/**
* 欢迎语素材类型
*/
public static class AttType {
public static final Integer TEXT = 1;
public static final Integer IMAGE = 2;
public static final Integer VEDIO = 3;
public static final Integer URI = 4;
public static final Integer MINIPROGRAM = 5;
public static final Integer FILE = 6;
public static final Integer ACTIVITY = 7;
}
/**
* 欢迎语素材类型
*/
public static class QyAttType {
public static final String TEXT = "text";
public static final String IMAGE = "image";
public static final String VEDIO = "video";
public static final String URI = "link";
public static final String MINIPROGRAM = "miniprogram";
public static final String FILE = "file";
public static final String ACTIVITY = "activity";
}
/**
* 数据删除状态
*/
public static class DelFlag {
public static final Byte OK = 0;
public static final Byte DEL = -1;
}
/**
* 模板可用状态
*/
public static class TemplateStatus {
public static final Byte OK = 1;
public static final Byte FORBIDDEN = 2;
}
/**
* 欢迎语desc配置
*/
public static class WelcomeDesc {
/**
* 一客一群
*/
public static final String ONEGROUP = "ONE_GROUP";
/**
* 客户群发
*/
public static final String MASS = "MASS_GROUP";
/**
* 活码
*/
public static final String CODE = "CODE_GROUP";
/**
* 营销
*/
public static final String DRAC = "DRAC";
/**
* 朋友圈
*/
public static final String MOMENT = "MOMENT";
/**
* 轻改运营专家
*/
public static final String OPERATION = "OPERATION";
/**
* 活动配置
*/
public static final String ACTIVITY = "ACTIVITY";
/**
* 道路救援卡
*/
public static final String RESCUE = "RESCUE";
/**
* AI智能外呼
*/
public static final String OUTBOUND = "OUT_BOUND";
/**
* 智能名片
*/
public static final String BUSINESS_CARD = "BUSINESS_CARD";
/**
* 高级群发api朋友圈群发
*/
public static final String BATCH_MOMENT = "BATCH_MOMENT";
/**
* 企微高级群发api消息群发
*/
public static final String BATCH_MESSAGING = "BATCH_MESSAGING";
/**
* 入群欢迎语
*/
public static final String CHAT_GROUP_WELCOME_MESSAGE = "CHAT_GROUP_WELCOME_MESSAGE";
}
/**
* 客户群发状态:-1创建失败 0创建成功 1发送成功 2发送失败 3待发送
*/
public static class MassStatus {
public static final Byte FAILURE = -1;
public static final Byte SUCCESS = 0;
public static final Byte SENDER = 1;
public static final Byte SEND_FAILURE = 2;
public static final Byte UNSEND = 3;
}
/**
* 客户群发状态:-1创建失败 0创建成功 1发送成功 2发送失败
*/
public static class MassSenderStatus {
/**
* 未发送
*/
public static final Integer UN_SENDER = 0;
/**
* 已发送
*/
public static final Integer SENDER = 1;
/**
* 不是好友 - 发送失败
*/
public static final Integer FAILURE_SENDER = 2;
/**
* 已经接收 - 发送失败
*/
public static final Integer FAILURE_RECIVER = 3;
}
/**
* 营销活动类型
* 1优惠券,2权益试用,3服务套餐,4活码
*/
public static class WelcomeActivity {
public static final Integer COUPON = 1;
public static final Integer EQUITY = 2;
public static final Integer SERVICE_PACKAGE = 3;
public static final Integer QY_CODE = 4;
}
@Getter
public enum EquityType {
BOUTIQUE_COUPON(1, "精品券"),
MALL_COUPON(2, "商城券"),
CARD_TRIAL(3, "权益卡试用"),
CARD_PACKAGE(4, "权益套餐"),
SECKILL_ACTIVITY(5, "秒杀活动"),
EXCLUSIVE_EQUITY(6, "无忧车主专属权益"),
SURVEY_QUESTIONNAIRE(7, "调查问卷"),
STRATEGY(9, "攻略"),
GROUP_CHAIN(10, "群接龙"),
RED_PACKET_ACTIVITY(11, "红包活动");
private int code;
private String description;
EquityType(int code, String description) {
this.code = code;
this.description = description;
}
public int getCode() {
return code;
}
public String getDescription() {
return description;
}
public static EquityType fromCode(int code) {
for (EquityType type : values()) {
if (type.code == code) {
return type;
}
}
throw new IllegalArgumentException("Invalid EquityType code: " + code);
}
}
}