feat:新增大屏存取发布接口
This commit is contained in:
@@ -212,7 +212,9 @@ class DataFileInfo(BaseModel):
|
||||
encoding: str | None
|
||||
size: int
|
||||
created_at: datetime
|
||||
# 被已保存的大屏引用时固定为 True,此时 expires_at 是个遥远的占位时间,不会过期
|
||||
expires_at: datetime
|
||||
pinned: bool = False
|
||||
tables: list[DataTableInfo]
|
||||
warnings: list[ParseWarning]
|
||||
# 未启用智能分析,或这是功能上线前上传的文件时为空
|
||||
@@ -229,6 +231,9 @@ class DataFileRecord(DataFileDetail):
|
||||
tables: list[DataTable]
|
||||
# 删除只做标记,记录留到过期,会话内的表名不会被新文件重复使用
|
||||
deleted: bool = False
|
||||
# 引用这个文件的大屏 ID。非空时文件不过期(expires_at 被推到 PINNED_EXPIRES),
|
||||
# 最后一个引用消失后重新按保留时长计时
|
||||
pinned_by: list[str] = Field(default_factory=list)
|
||||
|
||||
|
||||
UploadStatus = Literal["queued", "parsing", "ready", "failed"]
|
||||
|
||||
Reference in New Issue
Block a user