⚒️ 重大重构 LoveACE V2
引入了 mongodb 对数据库进行了一定程度的数据加密 性能改善 代码简化 统一错误模型和响应 使用 apifox 作为文档
This commit is contained in:
11
loveace/router/dependencies/logger.py
Normal file
11
loveace/router/dependencies/logger.py
Normal 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)
|
||||
Reference in New Issue
Block a user