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
    • status

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

      private WorkgroupSettingsEntity settings
      Configuration settings reference All settings are managed through the settings entity
    • 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
    • enabled

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

    • WorkgroupEntity

      public WorkgroupEntity()
  • Method Details

    • getMessageLeaveAgent

      public AgentEntity getMessageLeaveAgent()
    • toUserProtobuf

      public UserProtobuf toUserProtobuf()
    • getRoutingMode

      public String getRoutingMode()
      兼容旧代码:获取路由模式 优先从 settings 读取;若无 settings 或为空,使用安全默认值 ROUND_ROBIN
    • getAvailableAgentCount

      public long getAvailableAgentCount()
    • getOfflineAgentCount

      public long getOfflineAgentCount()
    • getBusyAgentCount

      public long getBusyAgentCount()
    • getAwayAgentCount

      public long getAwayAgentCount()