Package com.bytedesk.core.settings
Class SettingsEntity
java.lang.Object
com.bytedesk.core.base.BaseEntity
com.bytedesk.core.settings.SettingsEntity
- All Implemented Interfaces:
Serializable
Settings entity for content categorization and organization
Provides settings management functionality for various system entities
Database Table: bytedesk_core_settings
Purpose: Stores settings definitions, colors, and organization settings
当 level == LevelEnum.PLATFORM 时,存储平台级别配置:
- EMAIL 类型:全局邮箱配置,用于发送验证码邮件
- SMS 类型:全局短信配置,用于发送验证码短信
- TICKET_CENTER 类型:平台工单中心配置,存储所使用的工作组 workgroupUid
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate StringDescription of the settingsprivate EmailEntity关联的邮箱实体 当 type = EMAIL 时使用,关联 EmailEntity 避免在 Settings 中重复存储邮箱配置字段private Boolean邮件配置是否启用 当 type = EMAIL 时使用private StringName of the settingsprivate static final longprivate Boolean短信配置是否启用 当 type = SMS 时使用private SmsProviderEntity关联的短信服务商实体 当 type = SMS 时使用,关联 SmsProviderEntity 避免在 Settings 中重复存储短信配置字段private Boolean工单中心配置是否启用 当 type = TICKET_CENTER 时使用private StringType of settings (EMAIL, SMS, TICKET_CENTER, etc.)private WorkgroupEntity工单中心使用的工作组 当 type = TICKET_CENTER 且 level = PLATFORM 时使用 指向 DEFAULT_ORGANIZATION_UID 组织下的工作组 其他工单配置(如分类、自动分配、优先级等)在工作组的 TicketSettings 中配置 -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class com.bytedesk.core.base.BaseEntity
getCreatedAtString, getUpdatedAtString
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
name
Name of the settings -
description
Description of the settings -
type
Type of settings (EMAIL, SMS, TICKET_CENTER, etc.) -
email
关联的邮箱实体 当 type = EMAIL 时使用,关联 EmailEntity 避免在 Settings 中重复存储邮箱配置字段 -
smsProvider
关联的短信服务商实体 当 type = SMS 时使用,关联 SmsProviderEntity 避免在 Settings 中重复存储短信配置字段 -
workgroup
工单中心使用的工作组 当 type = TICKET_CENTER 且 level = PLATFORM 时使用 指向 DEFAULT_ORGANIZATION_UID 组织下的工作组 其他工单配置(如分类、自动分配、优先级等)在工作组的 TicketSettings 中配置 -
emailEnabled
邮件配置是否启用 当 type = EMAIL 时使用 -
smsEnabled
短信配置是否启用 当 type = SMS 时使用 -
ticketCenterEnabled
工单中心配置是否启用 当 type = TICKET_CENTER 时使用
-
-
Constructor Details
-
SettingsEntity
public SettingsEntity()
-