refactor(backend): 后端重构初步设想
This commit is contained in:
1 parent
b69d549b2c
commit
21b8c24815
96 files changed
+1592
No files matched your search
@@ -0,0 +1,9 @@
|
||||
"""
|
||||
backend/app/core/response.py
|
||||
|
||||
用途:统一 API 响应工具(Wave 1 自 app/response_utils.py 迁入)。
|
||||
逻辑:error_payload 供全局异常 handler 使用;ok() 供成功 envelope(可选)。
|
||||
"""
|
||||
from app.response_utils import error_payload, ok, utc_iso_now # noqa: F401
|
||||
|
||||
__all__ = ['error_payload', 'ok', 'utc_iso_now']
|
||||
Reference in new issue
Block a user