Skip to content

Commit

Permalink
fix 消息交互 again
Browse files Browse the repository at this point in the history
  • Loading branch information
jxxghp committed Oct 18, 2024
1 parent e93b3f5 commit 2b982ce
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 1 deletion.
1 change: 1 addition & 0 deletions app/modules/slack/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ def init_module(self) -> None:
"""
super().init_service(service_name=Slack.__name__.lower(),
service_type=Slack)
self._channel = MessageChannel.Slack

@staticmethod
def get_name() -> str:
Expand Down
1 change: 1 addition & 0 deletions app/modules/synologychat/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ def init_module(self) -> None:
"""
super().init_service(service_name=SynologyChat.__name__.lower(),
service_type=SynologyChat)
self._channel = MessageChannel.SynologyChat

@staticmethod
def get_name() -> str:
Expand Down
1 change: 1 addition & 0 deletions app/modules/telegram/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ def init_module(self) -> None:
"""
super().init_service(service_name=Telegram.__name__.lower(),
service_type=Telegram)
self._channel = MessageChannel.Telegram

@staticmethod
def get_name() -> str:
Expand Down
1 change: 1 addition & 0 deletions app/modules/vocechat/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ def init_module(self) -> None:
"""
super().init_service(service_name=VoceChat.__name__.lower(),
service_type=VoceChat)
self._channel = MessageChannel.VoceChat

@staticmethod
def get_name() -> str:
Expand Down
3 changes: 2 additions & 1 deletion app/modules/webpush/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
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):
Expand All @@ -17,6 +17,7 @@ def init_module(self) -> None:
初始化模块
"""
super().init_service(service_name=self.get_name().lower())
self._channel = MessageChannel.WebPush

@staticmethod
def get_name() -> str:
Expand Down
1 change: 1 addition & 0 deletions app/modules/wechat/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ def init_module(self) -> None:
"""
super().init_service(service_name=WeChat.__name__.lower(),
service_type=WeChat)
self._channel = MessageChannel.Wechat

@staticmethod
def get_name() -> str:
Expand Down

0 comments on commit 2b982ce

Please sign in to comment.