新增简易的8080面板😊
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
"""WebSocket API 插件入口 - 简化版"""
|
||||
from oss.logger.logger import Log
|
||||
from oss.plugin.types import Plugin, register_plugin_type
|
||||
|
||||
|
||||
@@ -10,17 +11,17 @@ class WsApiPlugin(Plugin):
|
||||
|
||||
def init(self, deps: dict = None):
|
||||
"""初始化"""
|
||||
print("[ws-api] 初始化完成")
|
||||
Log.info("ws-api", "初始化完成")
|
||||
|
||||
def start(self):
|
||||
"""启动"""
|
||||
self._running = True
|
||||
print("[ws-api] 已启动")
|
||||
Log.info("ws-api", "已启动")
|
||||
|
||||
def stop(self):
|
||||
"""停止"""
|
||||
self._running = False
|
||||
print("[ws-api] 已停止")
|
||||
Log.error("ws-api", "已停止")
|
||||
|
||||
|
||||
register_plugin_type("WsApiPlugin", WsApiPlugin)
|
||||
|
||||
Reference in New Issue
Block a user