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

24 行
735 B

  1. from pydantic import BaseModel, Field
  2. from datetime import datetime
  3. from schemas.user import ShowDriver
  4. class CreateFuelingTask(BaseModel):
  5. VehicleId: int = Field(...)
  6. Description: str = Field(...)
  7. Date: datetime = Field(...)
  8. Cost: int = Field(...)
  9. FuelRefilled: int = Field(...)
  10. GasStationName: str = Field(...)
  11. ImageBefore: str = Field(...)
  12. ImageAfter: str = Field(...)
  13. class OutputFuelingTask(BaseModel):
  14. VehicleId: int = Field(...)
  15. Description: str = Field(...)
  16. Date: datetime = Field(...)
  17. Cost: int = Field(...)
  18. FuelRefilled: int = Field(...)
  19. GasStationName: str = Field(...)
  20. ImageBefore: str = Field(...)
  21. ImageAfter: str = Field(...)
  22. Driver: ShowDriver | None