⚒️ 重大重构 LoveACE V2

引入了 mongodb
对数据库进行了一定程度的数据加密
性能改善
代码简化
统一错误模型和响应
使用 apifox 作为文档
This commit is contained in:
2025-11-20 20:44:25 +08:00
parent 6b90c6d7bb
commit bbc86b8330
168 changed files with 14264 additions and 19152 deletions

View File

@@ -0,0 +1,11 @@
import uuid
from loveace.config.logger import LoggerMixin
def no_user_logger_mixin() -> LoggerMixin:
return LoggerMixin(trace_id=str(uuid.uuid4().hex))
def logger_mixin_with_user(userid: str) -> LoggerMixin:
return LoggerMixin(trace_id=str(uuid.uuid4().hex), user_id=userid)