现在progress_type允许为None

This commit is contained in:
strepsiades
2026-03-11 14:49:35 +08:00
parent b9fbf357a4
commit bd81c6dae6
+1 -1
View File
@@ -70,7 +70,7 @@ class ProjectResponseBase(BaseResponseWithID):
complete_investment: float = Field(0.0, description="完成投资", examples=[80000.0])
# 其他信息
progress_type: ProgressType = Field(..., description="推进分类", examples=[ProgressType.A])
progress_type: ProgressType | None = Field(None, description="推进分类", examples=[ProgressType.A])
key_constraints: KeyConstraints = Field(KeyConstraints.NONE, description="关键制约", examples=[KeyConstraints.NONE])
key_constraints_remark: Optional[str] = Field("", description="关键制约备注", examples=[""])
status: Optional[str] = Field(None, description="项目状态")