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 IntentionSettingsEntityIntent recognition settingsprivate InviteSettingsEntityInvitation settings for the workgroupprivate AgentEntityAgent responsible for handling offline messagesprivate MessageLeaveSettingsSettings for handling offline messagesprivate @NotBlank StringDisplay name of the workgroupprivate QueueSettingsQueue management settingsprivate RobotSettingsRobot service configuration settingsprivate StringCustomer routing mode (ROUND_ROBIN, LEAST_BUSY, etc.)private static final longprivate ServiceSettingsGeneral service configuration settingsprivate StringCurrent status of the workgroup (AVAILABLE, BUSY, OFFLINE, etc.) -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlong获取可用客服longlonglonglongMethods 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()
-