wlzboy
6 天以前 09e6dc3fb7266620fafb5e341808a8eb36e080a1
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
package com.ruoyi.system.domain;
 
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
 
/**
 * 通知渠道配置实体类
 * 用于配置各类通知启用的发送渠道
 * 
 * @author ruoyi
 * @date 2025-12-07
 */
public class NotifyChannelConfig extends BaseEntity {
    private static final long serialVersionUID = 1L;
 
    // ==================== 渠道常量 ====================
    /** 渠道:微信订阅消息 */
    public static final String CHANNEL_WECHAT = "WECHAT";
    /** 渠道:短信 */
    public static final String CHANNEL_SMS = "SMS";
    /** 渠道:站内消息 */
    public static final String CHANNEL_SITE_MSG = "SITE_MSG";
    /** 渠道:APP推送 */
    public static final String CHANNEL_APP_PUSH = "APP_PUSH";
    /** 渠道:企业微信 */
    public static final String CHANNEL_QY_WECHAT = "QY_WECHAT";
 
    // ==================== 启用状态常量 ====================
    /** 启用 */
    public static final String ENABLED_YES = "1";
    /** 禁用 */
    public static final String ENABLED_NO = "0";
 
    /** 主键ID */
    private Long id;
 
    /** 通知类型 */
    @Excel(name = "通知类型")
    private String notifyType;
 
    /** 渠道 */
    @Excel(name = "渠道")
    private String channel;
 
    /** 是否启用 */
    @Excel(name = "是否启用", readConverterExp = "0=禁用,1=启用")
    private String enabled;
 
    /** 优先级 */
    @Excel(name = "优先级")
    private Integer priority;
 
    /** 渠道配置(JSON格式) */
    private String configJson;
 
    public Long getId() {
        return id;
    }
 
    public void setId(Long id) {
        this.id = id;
    }
 
    public String getNotifyType() {
        return notifyType;
    }
 
    public void setNotifyType(String notifyType) {
        this.notifyType = notifyType;
    }
 
    public String getChannel() {
        return channel;
    }
 
    public void setChannel(String channel) {
        this.channel = channel;
    }
 
    public String getEnabled() {
        return enabled;
    }
 
    public void setEnabled(String enabled) {
        this.enabled = enabled;
    }
 
    public Integer getPriority() {
        return priority;
    }
 
    public void setPriority(Integer priority) {
        this.priority = priority;
    }
 
    public String getConfigJson() {
        return configJson;
    }
 
    public void setConfigJson(String configJson) {
        this.configJson = configJson;
    }
 
    @Override
    public String toString() {
        return "NotifyChannelConfig{" +
                "id=" + id +
                ", notifyType='" + notifyType + '\'' +
                ", channel='" + channel + '\'' +
                ", enabled='" + enabled + '\'' +
                ", priority=" + priority +
                '}';
    }
}