mirror of
https://github.com/fastapiadmin/FastapiAdmin.git
synced 2026-09-22 13:05:18 +00:00
- 移除各路由文件顶部冗余注释 - 将 JobRouter/NodeRouter 重命名为 CornJobRouter/CornJobNodeRouter - 新增存储浏览、节点、传输、工作流路由注册 - 调整路由导入来源与任务表名 - 优化 main.py 启动方式及环境配置加载
24 lines
724 B
Python
24 lines
724 B
Python
from pydantic import BaseModel, Field
|
|
|
|
|
|
class StorageUploadResultSchema(BaseModel):
|
|
"""上传结果"""
|
|
|
|
file_path: str = Field(..., description="远端路径")
|
|
file_name: str = Field(..., description="远端文件名")
|
|
origin_name: str = Field(..., description="原始文件名")
|
|
file_url: str | None = Field(default=None, description="访问链接")
|
|
|
|
|
|
class StoragePathResultSchema(BaseModel):
|
|
"""路径操作结果(复制/移动/重命名)"""
|
|
|
|
source_path: str = Field(..., description="源路径")
|
|
target_path: str = Field(..., description="目标路径")
|
|
|
|
|
|
class StoragePathCreateSchema(BaseModel):
|
|
"""新建目录结果"""
|
|
|
|
path: str = Field(..., description="目录路径")
|