Package com.bytedesk.service.workgroup
Class WorkgroupEntity
java.lang.Object
com.bytedesk.core.base.BaseEntity
com.bytedesk.service.workgroup.WorkgroupEntity
- All Implemented Interfaces:
Serializable
Workgroup entity for customer service team management
Manages workgroups that support both robot and human agent services
Database Table: bytedesk_service_workgroup
Purpose: Stores workgroup configurations, agent assignments, and service settings
Key differences:
- WorkgroupEntity vs Skills: Organizational structure vs capability labels
- WorkgroupEntity vs Agent: Group support (robot + human) vs individual agent only
- WorkgroupEntity vs Robot: Group with routing vs standalone robot
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate List<AgentEntity>Agents assigned to this workgroupprivate StringWorkgroup avatar or profile picture URLprivate StringDescription of the workgroup's functionprivate BooleanWhether the workgroup is enabled and activeprivate StringAdditional configuration data stored as JSONprivate AgentEntityAgent responsible for handling offline messagesprivate @NotBlank StringDisplay name of the workgroupprivate static final longprivate WorkgroupSettingsEntityConfiguration settings reference All settings are managed through the settings entityprivate StringCurrent status of the workgroup (AVAILABLE, BUSY, OFFLINE, etc.) -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlonglonglonglong兼容旧代码:获取路由模式 优先从 settings 读取;若无 settings 或为空,使用安全默认值 ROUND_ROBINMethods inherited from class com.bytedesk.core.base.BaseEntity
getCreatedAtString, getUpdatedAtString
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
nickname
Display name of the workgroup -
avatar
Workgroup avatar or profile picture URL -
description
Description of the workgroup's function -
status
Current status of the workgroup (AVAILABLE, BUSY, OFFLINE, etc.) -
settings
Configuration settings reference All settings are managed through the settings entity -
agents
Agents assigned to this workgroup -
messageLeaveAgent
Agent responsible for handling offline messages -
extra
Additional configuration data stored as JSON -
enabled
Whether the workgroup is enabled and active
-
-
Constructor Details
-
WorkgroupEntity
public WorkgroupEntity()
-
-
Method Details
-
getMessageLeaveAgent
-
toUserProtobuf
-
getRoutingMode
兼容旧代码:获取路由模式 优先从 settings 读取;若无 settings 或为空,使用安全默认值 ROUND_ROBIN -
getAvailableAgentCount
public long getAvailableAgentCount() -
getOfflineAgentCount
public long getOfflineAgentCount() -
getBusyAgentCount
public long getBusyAgentCount() -
getAwayAgentCount
public long getAwayAgentCount()
-