PaiGram/core
洛水居室 dfe58215ae
🐛 Fix WebServer configuration
Co-authored-by: Karako <karakohear@gmail.com>
2023-04-27 22:50:13 +08:00
..
builtins ♻️ PaiGram V4 2023-03-14 09:27:22 +08:00
dependence 🐛 Fix honey impact data parse error 2023-04-25 22:35:58 +08:00
handler 🐛 Fix the AdminHandler not following the block parameter of the handler to be wrapped. 2023-03-14 14:39:22 +08:00
override ⬆️ Bump all dependencies 2023-03-27 19:55:39 +08:00
plugin 🐛 Fix the Forbidden exception caused by the failure to delete a message successfully 2023-04-16 12:14:53 +08:00
services Support for Jinja2 template preview 2023-04-27 22:45:38 +08:00
sqlmodel ♻️ PaiGram V4 2023-03-14 09:27:22 +08:00
__init__.py ♻️ PaiGram V4 2023-03-14 09:27:22 +08:00
application.py ♻️ PaiGram V4 2023-03-14 09:27:22 +08:00
base_service.py ♻️ PaiGram V4 2023-03-14 09:27:22 +08:00
basemodel.py ♻️ PaiGram V4 2023-03-14 09:27:22 +08:00
config.py 🐛 Fix WebServer configuration 2023-04-27 22:50:13 +08:00
error.py 🎨 使用 black 格式化所有代码 2022-10-10 19:07:28 +08:00
manager.py ♻️ PaiGram V4 2023-03-14 09:27:22 +08:00
README.md ♻ 更新V3版本 2022-09-08 09:08:37 +08:00

core 目录说明

关于 Service

服务 Service 需定义在 services 文件夹下, 并继承 core.service.Service

每个 Service 都应包含 startstop 方法, 且这两个方法都为异步方法

from core.service import Service


class TestService(Service):
    def __init__(self):
        """do something"""

    async def start(self, *args, **kwargs):
        """do something"""

    async def stop(self, *args, **kwargs):
        """do something"""