Class PluginController

java.lang.Object
com.bytedesk.core.plugin.PluginController

@RestController @RequestMapping("/api/v1/plugins") public class PluginController extends Object
插件管理控制器 提供插件信息查询和管理接口
  • Field Details

  • Constructor Details

    • PluginController

      public PluginController()
  • Method Details

    • getAllPlugins

      @GetMapping public org.springframework.http.ResponseEntity<Map<String,Object>> getAllPlugins()
      获取所有插件列表 http://127.0.0.1:9003/api/v1/plugins
    • getEnabledPlugins

      @GetMapping("/enabled") public org.springframework.http.ResponseEntity<Map<String,Object>> getEnabledPlugins()
      获取已启用的插件列表
    • getPlugin

      @GetMapping("/{pluginId}") public org.springframework.http.ResponseEntity<Map<String,Object>> getPlugin(@PathVariable String pluginId)
      获取指定插件信息
    • getPluginHealth

      @GetMapping("/{pluginId}/health") public org.springframework.http.ResponseEntity<Map<String,Object>> getPluginHealth(@PathVariable String pluginId)
      获取插件健康状态
    • getAllPluginsHealth

      @GetMapping("/health") public org.springframework.http.ResponseEntity<Map<String,Object>> getAllPluginsHealth()
      获取所有插件的健康状态
    • getPluginStatistics

      @GetMapping("/{pluginId}/statistics") public org.springframework.http.ResponseEntity<Map<String,Object>> getPluginStatistics(@PathVariable String pluginId)
      获取插件统计信息
    • getAllPluginsStatistics

      @GetMapping("/statistics") public org.springframework.http.ResponseEntity<Map<String,Object>> getAllPluginsStatistics()
      获取所有插件的统计信息
    • getPluginsOverview

      @GetMapping("/overview") public org.springframework.http.ResponseEntity<Map<String,Object>> getPluginsOverview()
      获取插件概览信息
    • convertPluginToMap

      private Map<String,Object> convertPluginToMap(BytedeskPlugin plugin)
      转换插件为Map(简化版)
    • convertPluginToDetailMap

      private Map<String,Object> convertPluginToDetailMap(BytedeskPlugin plugin)
      转换插件为Map(详细版)