2023-02-14 17:36:54 +08:00

35 lines
681 B
Python
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

from abc import ABCMeta, abstractmethod
class _IPluginModule(metaclass=ABCMeta):
"""
插件模块基类
"""
# 插件名称
module_name = ""
# 插件描述
module_desc = ""
# 插件图标
module_icon = ""
# 插件版本
module_version = "1.0"
# 插件作者
module_author = ""
@abstractmethod
def get_fields(self, ctype):
"""
获取配置字典,用于生成表单
"""
pass
@abstractmethod
def save_config(self, conf):
"""
保存配置信息可通过SystemConfig保存配置数据
:param conf: 配置信息
:return:
"""
pass