docker build 构建修改
This commit is contained in:
@@ -138,11 +138,11 @@ class GetDocumentInfosRequest(BaseModel):
|
||||
class ChangeStatusRequest(BaseModel):
|
||||
"""修改文档状态请求"""
|
||||
doc_ids: List[str]
|
||||
status: str # "0" 或 "1"
|
||||
status: int
|
||||
|
||||
@model_validator(mode='after')
|
||||
def validate_status(self):
|
||||
if self.status not in ["0", "1"]:
|
||||
if self.status not in [0, 1]:
|
||||
raise ValueError('Status must be either 0 or 1!')
|
||||
return self
|
||||
|
||||
@@ -155,7 +155,7 @@ class DeleteDocumentRequest(BaseModel):
|
||||
class RunDocumentRequest(BaseModel):
|
||||
"""运行文档解析请求"""
|
||||
doc_ids: List[str]
|
||||
run: str # TaskStatus 值
|
||||
run: int # TaskStatus 值
|
||||
delete: Optional[bool] = False
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user