AdaKing88
2023-08-23 ae35159387a55199e8ab150ebb97d89d68a235bd
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
package org.jeecg.modules.message.handle.enums;
 
import org.jeecg.common.util.oConvertUtils;
 
/**
 * 发送消息类型枚举
 * @author: jeecg-boot
 */
public enum SendMsgTypeEnum {
 
    /**
     * 短信
     */
    SMS("1", "org.jeecg.modules.message.handle.impl.SmsSendMsgHandle"),
    /**
     * 邮件
     */
    EMAIL("2", "org.jeecg.modules.message.handle.impl.EmailSendMsgHandle"),
    /**
     * 微信
     */
    WX("3","org.jeecg.modules.message.handle.impl.WxSendMsgHandle"),
    /**
     * 系统消息
     */
    SYSTEM_MESSAGE("4","org.jeecg.modules.message.handle.impl.SystemSendMsgHandle");
 
    private String type;
 
    private String implClass;
 
    private SendMsgTypeEnum(String type, String implClass) {
        this.type = type;
        this.implClass = implClass;
    }
 
    public String getType() {
        return type;
    }
 
    public void setType(String type) {
        this.type = type;
    }
 
    public String getImplClass() {
        return implClass;
    }
 
    public void setImplClass(String implClass) {
        this.implClass = implClass;
    }
 
    public static SendMsgTypeEnum getByType(String type) {
        if (oConvertUtils.isEmpty(type)) {
            return null;
        }
        for (SendMsgTypeEnum val : values()) {
            if (val.getType().equals(type)) {
                return val;
            }
        }
        return null;
    }
}