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 String
Workgroup avatar or profile picture URLprivate String
Description of the workgroup's functionprivate Boolean
Whether the workgroup is enabled and activeprivate String
Additional configuration data stored as JSONprivate IntentionSettingsEntity
Intent recognition settingsprivate InviteSettingsEntity
Invitation settings for the workgroupprivate AgentEntity
Agent responsible for handling offline messagesprivate MessageLeaveSettings
Settings for handling offline messagesprivate @NotBlank String
Display name of the workgroupprivate QueueSettings
Queue management settingsprivate RobotSettings
Robot service configuration settingsprivate String
Customer routing mode (ROUND_ROBIN, LEAST_BUSY, etc.)private static final long
private ServiceSettings
General service configuration settingsprivate String
Current status of the workgroup (AVAILABLE, BUSY, OFFLINE, etc.) -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlong
获取可用客服long
long
long
long
Methods 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 -
routingMode
Customer routing mode (ROUND_ROBIN, LEAST_BUSY, etc.) -
status
Current status of the workgroup (AVAILABLE, BUSY, OFFLINE, etc.) -
messageLeaveSettings
Settings for handling offline messages -
robotSettings
Robot service configuration settings -
serviceSettings
General service configuration settings -
queueSettings
Queue management settings -
agents
Agents assigned to this workgroup -
messageLeaveAgent
Agent responsible for handling offline messages -
extra
Additional configuration data stored as JSON -
inviteSettings
Invitation settings for the workgroup -
intentionSetting
Intent recognition settings -
enabled
Whether the workgroup is enabled and active
-
-
Constructor Details
-
WorkgroupEntity
public WorkgroupEntity()
-
-
Method Details
-
getAvailableAgents
获取可用客服- Returns:
- 可用客服列表
-
getMessageLeaveAgent
-
isConnected
-
toUserProtobuf
-
getConnectedAgentCount
public long getConnectedAgentCount() -
getAvailableAgentCount
public long getAvailableAgentCount() -
getOfflineAgentCount
public long getOfflineAgentCount() -
getBusyAgentCount
public long getBusyAgentCount() -
getAwayAgentCount
public long getAwayAgentCount()
-