Class WorkgroupEntity

java.lang.Object
com.bytedesk.core.base.BaseEntity
com.bytedesk.service.workgroup.WorkgroupEntity
All Implemented Interfaces:
Serializable

@Entity public class WorkgroupEntity extends BaseEntity
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 Details

    • serialVersionUID

      private static final long serialVersionUID
      See Also:
    • nickname

      @NotBlank private @NotBlank String nickname
      Display name of the workgroup
    • avatar

      private String avatar
      Workgroup avatar or profile picture URL
    • description

      private String description
      Description of the workgroup's function
    • routingMode

      private String routingMode
      Customer routing mode (ROUND_ROBIN, LEAST_BUSY, etc.)
    • status

      private String status
      Current status of the workgroup (AVAILABLE, BUSY, OFFLINE, etc.)
    • messageLeaveSettings

      private MessageLeaveSettings messageLeaveSettings
      Settings for handling offline messages
    • robotSettings

      private RobotSettings robotSettings
      Robot service configuration settings
    • serviceSettings

      private ServiceSettings serviceSettings
      General service configuration settings
    • queueSettings

      private QueueSettings queueSettings
      Queue management settings
    • agents

      private List<AgentEntity> agents
      Agents assigned to this workgroup
    • messageLeaveAgent

      private AgentEntity messageLeaveAgent
      Agent responsible for handling offline messages
    • extra

      private String extra
      Additional configuration data stored as JSON
    • inviteSettings

      private InviteSettingsEntity inviteSettings
      Invitation settings for the workgroup
    • intentionSetting

      private IntentionSettingsEntity intentionSetting
      Intent recognition settings
    • enabled

      private Boolean enabled
      Whether the workgroup is enabled and active
  • Constructor Details

    • WorkgroupEntity

      public WorkgroupEntity()
  • Method Details

    • getAvailableAgents

      public List<AgentEntity> getAvailableAgents()
      获取可用客服
      Returns:
      可用客服列表
    • getMessageLeaveAgent

      public AgentEntity getMessageLeaveAgent()
    • isConnected

      public Boolean isConnected()
    • toUserProtobuf

      public UserProtobuf toUserProtobuf()
    • getConnectedAgentCount

      public long getConnectedAgentCount()
    • getAvailableAgentCount

      public long getAvailableAgentCount()
    • getOfflineAgentCount

      public long getOfflineAgentCount()
    • getBusyAgentCount

      public long getBusyAgentCount()
    • getAwayAgentCount

      public long getAwayAgentCount()