[Update#1]支撑AI生成测试项-接口调整

This commit is contained in:
2025-12-02 18:13:30 +08:00
parent a396a8fcfa
commit 9db8b28f5b
14 changed files with 46 additions and 32 deletions

View File

@@ -7,9 +7,9 @@ from typing import List, Optional
window_file_str = ['\\', '/', ':', '*', '?', '"', '<', '>', "|"]
class ProjectRetrieveSchema(ModelSchema):
class Config:
class Meta:
model = Project
model_exclude = ['update_datetime', 'create_datetime', 'remark']
exclude = ['update_datetime', 'create_datetime', 'remark']
class ProjectFilterSchema(Schema):
ident: Optional[str] = None
@@ -26,9 +26,9 @@ class ProjectFilterSchema(Schema):
class ProjectCreateInput(ModelSchema):
ident: str
class Config:
class Meta:
model = Project
model_exclude = ['remark', 'update_datetime', 'create_datetime', 'sort', 'id']
exclude = ['remark', 'update_datetime', 'create_datetime', 'sort', 'id']
@field_validator('ident')
@staticmethod