修复了一个project_detail_data create失败报错的问题

This commit is contained in:
strepsiades
2026-03-31 15:54:12 +08:00
parent f0ce8dc37e
commit eb02fd32a5
3 changed files with 59 additions and 3 deletions
+2 -2
View File
@@ -73,12 +73,12 @@ class ProjectResponseBase(BaseResponseWithID):
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="项目状态")
# status: Optional[str] = Field(None, description="项目状态")
apply_file_ids: List[str] = Field(default_factory=list, description="申请表附件ID列表", examples=[[]])
# 拓展信息
dbtc_score_list: Optional[list] = Field(default_factory=list, description='达标投产评分列表') # 这里项目用的是list而不是List
approval_status: Optional[str] = Field(None, description="审核状态", examples=["pending"])
# : Optional[str] = Field(None, description="审核状态", examples=["pending"])