feat: general:新增、更新的时候更新创建人更新人id

This commit is contained in:
martsforever
2025-10-15 20:10:33 +08:00
parent 87ceb1c468
commit 1608e4327e
4 changed files with 73 additions and 58 deletions
+2 -2
View File
@@ -40,7 +40,7 @@ def add_general_interceptor(interceptor: GeneralInterceptor):
_general_interceptors.append(interceptor)
async def invoke_interceptor(method: str, module: str, *args):
async def invoke_interceptor(method: str, module: str, **kwargs):
if module.startswith('/'):
module = module[1:]
if module.endswith('/'):
@@ -49,4 +49,4 @@ async def invoke_interceptor(method: str, module: str, *args):
for item in match_interceptors:
interceptor_method = getattr(item, method, None) # 使用 getattr 获取方法
if interceptor_method and callable(interceptor_method):
await interceptor_method(*args) # 调用方法
await interceptor_method(**kwargs) # 调用方法