增加一些配置性工作

This commit is contained in:
2026-01-15 14:32:31 +08:00
parent 1e8ae960cd
commit 64b263cc2f
12 changed files with 62 additions and 256 deletions

9
service/__init__.py Normal file
View File

@@ -0,0 +1,9 @@
from service.wecom import Wecom
from config import Settings
from utils.sing import SingletonProvider
# 获取单例函数
get_wecom = SingletonProvider(lambda: Wecom(
Settings().WECOM_CORPID,Settings().WECOM_CORPSECRET
))

View File

@@ -0,0 +1,5 @@
from wecom_sdk import Wecom
__all__ = [
"Wecom"
]