Refactor code structure for improved readability and maintainability
This commit is contained in:
@@ -1,4 +1,3 @@
|
||||
# src/config/__init__.py
|
||||
"""配置模块"""
|
||||
|
||||
from .settings import Settings, get_settings, settings
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
# src/config/logging.py
|
||||
"""日志配置"""
|
||||
|
||||
from loguru import logger
|
||||
@@ -29,4 +28,4 @@ def setup_logging(level: str = "INFO"):
|
||||
compression="zip"
|
||||
)
|
||||
|
||||
return logger
|
||||
return logger
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
# src/config/settings.py
|
||||
"""配置管理 - 环境变量和默认配置"""
|
||||
|
||||
from pydantic_settings import BaseSettings
|
||||
|
||||
Reference in New Issue
Block a user