新增问题单详情界面
This commit is contained in:
Binary file not shown.
Binary file not shown.
@@ -167,4 +167,4 @@ class PersonReplaceSchema(Schema):
|
||||
# 时间替换Schema
|
||||
class ExetimeReplaceSchema(Schema):
|
||||
selectRows: List[int] = None
|
||||
exetime: str
|
||||
exetime: List[str]
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
from pydantic import AliasChoices
|
||||
|
||||
from apps.project.models import Problem
|
||||
from ninja import Field, Schema, ModelSchema
|
||||
from typing import List, Optional
|
||||
@@ -59,7 +61,7 @@ class ProblemCreateOutSchema(ModelSchema):
|
||||
|
||||
# 更新,新增schema
|
||||
class ProblemCreateInputSchema(Schema):
|
||||
project_id: int = Field(..., alias="projectId")
|
||||
project_id: int = Field(..., validation_alias=AliasChoices('project_id', 'projectId'))
|
||||
round_key: str = Field(None, alias="round")
|
||||
dut_key: str = Field(None, alias="dut")
|
||||
design_key: str = Field(None, alias="designDemand")
|
||||
|
||||
Reference in New Issue
Block a user