You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

20 lines
592B

  1. # -*-coding:utf-8 -*-
  2. from typing import Union
  3. from fastapi._compat import Required
  4. from pydantic import BaseModel, Field, HttpUrl
  5. class UploadRequest(BaseModel):
  6. requestId: str = Field(default=Required, title="请求id", pattern="^[a-zA-Z0-9]{1,36}$")
  7. callbackUrl: HttpUrl = Field(default=Required, title="回调地址")
  8. class CallbackRequest(BaseModel):
  9. requestId: Union[str, None]
  10. errorCode: Union[str, None]
  11. errorMsg: Union[str, None]
  12. status: Union[int, None]
  13. imageList: Union[list, None]
  14. videoList: Union[list, None]
  15. currentTime: Union[str, None]