feat: general:新增、更新的时候更新创建人更新人id
This commit is contained in:
@@ -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) # 调用方法
|
||||
|
||||
Reference in New Issue
Block a user