Package com.bytedesk.core.plugin
Interface BytedeskPlugin
- All Known Implementing Classes:
AbstractBytedeskPlugin,AiPlugin,CallPlugin,CorePlugin,KbasePlugin,ServicePlugin,TicketPlugin,VocPlugin
public interface BytedeskPlugin
Bytedesk插件接口
所有模块插件必须实现此接口
-
Method Details
-
getPluginId
String getPluginId()获取插件唯一标识符- Returns:
- 插件ID,如:kbase, service, ticket, ai, call, voc
-
getPluginName
String getPluginName()获取插件名称- Returns:
- 插件显示名称
-
getDescription
String getDescription()获取插件描述- Returns:
- 插件功能描述
-
getVersion
String getVersion()获取插件版本- Returns:
- 版本号
-
getAuthor
String getAuthor()获取插件作者- Returns:
- 作者信息
-
getWebsite
获取插件官网- Returns:
- 官网URL
-
isEnabled
boolean isEnabled()插件是否启用- Returns:
- true表示启用,false表示禁用
-
getPriority
default int getPriority()插件优先级(数字越小优先级越高)- Returns:
- 优先级值,默认100
-
getDependencies
获取插件依赖的其他插件ID列表- Returns:
- 依赖的插件ID数组,如果没有依赖返回空数组
-
getHealthStatus
获取插件健康状态- Returns:
- 健康状态信息
-
getStatistics
获取插件统计信息- Returns:
- 统计数据
-
initialize
default void initialize()插件初始化 在插件注册后调用 -
destroy
default void destroy()插件销毁 在应用关闭时调用
-