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

13 行
369 B

  1. from pydantic import BaseModel, Field
  2. from datetime import datetime
  3. class CreateFuelingTask(BaseModel):
  4. VehicleId: str = Field(...)
  5. Description: str = Field(...)
  6. Date: datetime = Field(...)
  7. Cost: int = Field(...)
  8. FuelRefilled: int = Field(...)
  9. GasStationName: str = Field(...)
  10. ImageBefore: str = Field(...)
  11. ImageAfter: str = Field(...)