MCPcopy Index your code
hub / github.com/dataease/SQLBot / batch_del

Function batch_del

backend/apps/system/api/user.py:268–270  ·  view source on GitHub ↗
(session: SessionDep, id_list: list[int])

Source from the content-addressed store, hash-verified

266@require_permissions(permission=SqlbotPermission(role=['admin']))
267@system_log(LogConfig(operation_type=OperationType.DELETE,module=OperationModules.USER,resource_id_expr="id_list"))
268async def batch_del(session: SessionDep, id_list: list[int]):
269 for id in id_list:
270 await single_delete(session, id)
271
272@router.put("/language", summary=f"{PLACEHOLDER_PREFIX}language_change", description=f"{PLACEHOLDER_PREFIX}language_change")
273@clear_cache(namespace=CacheNamespace.AUTH_INFO, cacheName=CacheName.USER_INFO, keyExpression="current_user.id")

Callers

nothing calls this directly

Calls 1

single_deleteFunction · 0.90

Tested by

no test coverage detected