feat: implement WebDAV protocol support with WsgiDAV + account management API
All checks were successful
Test / test (push) Successful in 2m14s
All checks were successful
Test / test (push) Successful in 2m14s
Add complete WebDAV support: management REST API (CRUD accounts at /api/v1/webdav/accounts) and DAV protocol endpoint (/dav) using WsgiDAV + a2wsgi bridge for client access via HTTP Basic Auth. Includes Redis+TTLCache auth caching and integration tests (24 cases). Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -78,6 +78,26 @@ class ObjectBase(SQLModelBase):
|
||||
|
||||
# ==================== DTO 模型 ====================
|
||||
|
||||
class ObjectFileFinalize(SQLModelBase):
|
||||
"""文件上传完成后更新 Object 的 DTO"""
|
||||
|
||||
size: int
|
||||
"""文件大小(字节)"""
|
||||
|
||||
physical_file_id: UUID
|
||||
"""关联的物理文件UUID"""
|
||||
|
||||
|
||||
class ObjectMoveUpdate(SQLModelBase):
|
||||
"""移动/重命名 Object 的 DTO"""
|
||||
|
||||
parent_id: UUID
|
||||
"""新的父目录UUID"""
|
||||
|
||||
name: str
|
||||
"""新名称"""
|
||||
|
||||
|
||||
class DirectoryCreateRequest(SQLModelBase):
|
||||
"""创建目录请求 DTO"""
|
||||
|
||||
|
||||
Reference in New Issue
Block a user