Refactor object move API and fix src_ids type

Changed ObjectMoveRequest.src_ids to always be a list of UUIDs for consistency. Refactored the object move API to simplify src_ids handling, optimize cycle detection, and batch commit database changes for efficiency. Also removed unused AdminSummaryData import.
This commit is contained in:
2026-01-14 00:00:07 +08:00
parent 3059f9c259
commit 28b73a0bb4
4 changed files with 20 additions and 15 deletions

View File

@@ -93,7 +93,7 @@ class DirectoryCreateRequest(SQLModelBase):
class ObjectMoveRequest(SQLModelBase):
"""移动对象请求 DTO"""
src_ids: UUID | list[UUID]
src_ids: list[UUID]
"""源对象UUID列表"""
dst_id: UUID