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 +
|
'}';
|
}
|
}
|