ExterUniEnum.java
1.31 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
package com.hotent.system.enums;
/**
*
* <pre>
* 描述:系统第三方集成 类型枚举
* 构建组:eip平台-bpmx-platform
* 作者:PangQuan
* 邮箱:PangQuan@jee-soft.cn
* 日期:2019-11-27 10:09:07
* 版权:广州宏天软件有限公司
* </pre>
*/
public enum ExterUniEnum {
/**
* 企业微信
*/
WeChatWork("weChatWork","企业微信", 0),
/**
* 阿里钉钉
*/
Dingtalk("dingtalk","阿里钉钉", 1),
/**
* 微信公众号
*/
WeChatOfficialAccounts("weChatOffAcc","微信公众号", 3),
/**
* 微信小程序
*/
MiniProgram("miniprogram","小程序", 4),
/**
* 飞书
*/
FlyBook("flyBook","飞书", 2);
private String key;
private String label;
private Integer type;
ExterUniEnum(String key, String label, Integer type){
this.setKey(key);
this.setLabel(label);
this.setType(type);
}
public Integer getType() {
return type;
}
public void setType(Integer type) {
this.type = type;
}
public String getLabel() {
return label;
}
public void setLabel(String label) {
this.label = label;
}
public String getKey() {
return key;
}
public void setKey(String key) {
this.key = key;
}
public static String getLabelByKey(String key){
for(ExterUniEnum en : ExterUniEnum.values()){
if(en.getKey().equals(key)){
return en.getLabel();
}
}
return "";
}
}