初步实现插件系统
This commit is contained in:
7
util/base_plugin.py
Normal file
7
util/base_plugin.py
Normal file
@@ -0,0 +1,7 @@
|
||||
class BasePlugin:
|
||||
def __init__(self, plugin_name, title):
|
||||
self.plugin_name = plugin_name
|
||||
self.title = title
|
||||
|
||||
def run_plugin(self, callback):
|
||||
raise NotImplementedError("Subclasses must implement run_plugin method")
|
||||
Reference in New Issue
Block a user