From 1db9619edab8e4d36f2ef499a556471392970c0d Mon Sep 17 00:00:00 2001 From: jxxghp Date: Sat, 17 Oct 2026 03:41:25 +0800 Subject: [PATCH] refactor(types): specify notification management endpoint results --- app/api/endpoints/notification.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/api/endpoints/notification.py b/app/api/endpoints/notification.py index 99175b619..4ff4b4495 100644 --- a/app/api/endpoints/notification.py +++ b/app/api/endpoints/notification.py @@ -40,7 +40,7 @@ def _normalize_configs(value: list[NotificationConf]) -> list[dict[str, Any]]: async def save_config( configs: list[NotificationConf] = Body(...), _: object = Depends(get_current_active_superuser), -): +) -> _SchemaResponse[object]: """一次保存通知配置,并由渠道模块处理改名与删除缓存。""" try: current = _normalize_configs(configs) @@ -84,7 +84,7 @@ async def save_config( def manage_channel( request: _SchemaManageRequest, _: object = Depends(get_current_active_superuser), -): +) -> _SchemaResponse[object]: """ 通知渠道统一管理入口