fix commands

This commit is contained in:
jxxghp
2023-06-09 11:26:53 +08:00
parent 50d71621d7
commit 01428e9f8f
25 changed files with 228 additions and 202 deletions

View File

@ -225,3 +225,17 @@ class _ModuleBase(metaclass=ABCMeta):
:return: 成功或失败
"""
pass
def register_commands(self, commands: dict):
"""
注册命令,实现这个函数接收系统可用的命令菜单
:param commands: 命令字典
"""
pass
@abstractmethod
def stop(self):
"""
如果关闭时模块有服务需要停止,需要实现此方法
"""
pass