您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

12345678910111213141516171819
  1. from pydantic import BaseModel, Field
  2. class CreateCarPart(BaseModel):
  3. ParentId: int = Field(...)
  4. Name: str = Field(...)
  5. Number: str = Field(...)
  6. Condition: str = Field(...)
  7. ImageURL: str = Field(...)
  8. Cost: int = Field(...)
  9. class ShowCarPart(BaseModel):
  10. ParentId: int = Field(...)
  11. Name: str = Field(...)
  12. Number: str = Field(...)
  13. Condition: str = Field(...)
  14. ImageURL: str = Field(...)
  15. Cost: int = Field(...)