fix 消息交互 again

This commit is contained in:
jxxghp
2024-10-18 18:30:34 +08:00
parent e93b3f5602
commit 2b982ce7a8
6 changed files with 7 additions and 1 deletions

View File

@@ -7,7 +7,7 @@ from app.core.config import global_vars, settings
from app.log import logger
from app.modules import _ModuleBase, _MessageBase
from app.schemas import Notification
from app.schemas.types import ModuleType
from app.schemas.types import ModuleType, MessageChannel
class WebPushModule(_ModuleBase, _MessageBase):
@@ -17,6 +17,7 @@ class WebPushModule(_ModuleBase, _MessageBase):
初始化模块
"""
super().init_service(service_name=self.get_name().lower())
self._channel = MessageChannel.WebPush
@staticmethod
def get_name() -> str: