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
| package com.qianwen.core.notify;
|
| /* loaded from: blade-starter-notify-9.3.0.0-SNAPSHOT.jar:org/springblade/core/notify/DefaultNotifyType.class */
| public enum DefaultNotifyType implements NotifyType {
| sms("短信"),
| email("邮件"),
| voice("语音"),
| dingTalk("钉钉"),
| weiXinMini("微信小程序"),
| weiXinMp("微信公众号"),
| weiXinQY("企业微信"),
| internalMessage("站内信");
|
| private String name;
|
| DefaultNotifyType(final String name) {
| this.name = name;
| }
|
| @Override // com.qianwen.core.notify.NotifyType
| public String getName() {
| return this.name;
| }
|
| @Override // com.qianwen.core.notify.NotifyType
| public String getId() {
| return name();
| }
|
| public static DefaultNotifyType of(String id) {
| if (id == null) {
| return null;
| }
| DefaultNotifyType[] values = values();
| for (DefaultNotifyType nameEnum : values) {
| String currentId = nameEnum.getId();
| if (currentId.equals(id)) {
| return nameEnum;
| }
| }
| return null;
| }
| }
|
|