尝试加入权限内容。

This commit is contained in:
liuwei
2025-03-18 14:51:37 +08:00
parent bcca2dab28
commit adfa3505a5
3 changed files with 33 additions and 112 deletions

View File

@@ -1,6 +1,7 @@
import os
import toml
from abc import ABC, abstractmethod
import logging
from enum import Enum
from typing import Dict, Any, List, Optional
@@ -61,6 +62,8 @@ class PluginInterface(ABC):
self._status = PluginStatus.UNLOADED
self._config = {}
self._plugin_path = ""
# 初始化日志记录器
self.LOG = logging.getLogger(f"Plugin.{self.name}")
def load_config(self) -> bool:
"""