upload.go 1.2 KB

123456789101112131415161718192021222324252627282930313233343536
  1. package v1
  2. // ImgUploadRequest .
  3. type ImgUploadRequest struct {
  4. Type int `json:"type" form:"type"`
  5. }
  6. //PreUploadRequest ...
  7. type PreUploadRequest struct {
  8. Title string `json:"title" form:"title" validate:"required"`
  9. Extension string `json:"extension" form:"extension"`
  10. FileExt string `json:"file_ext" form:"file_ext" validate:"required"`
  11. }
  12. //CallBackRequest ..
  13. type CallBackRequest struct {
  14. Svid int64 `json:"biz_id" form:"biz_id" validate:"required"`
  15. URL string `json:"url" form:"url" validate:"required"`
  16. Profile string `json:"profile" form:"profile" validate:"required"`
  17. UploadID string `json:"upload_id" form:"upload_id" validate:"required"`
  18. Auth string `json:"auth" form:"auth" validate:"required"`
  19. }
  20. // UploadCheckResponse 创作中心上传过滤
  21. type UploadCheckResponse struct {
  22. Msg string `json:"msg"`
  23. IsAllow bool `json:"is_allow"`
  24. }
  25. //HomeImgRequest ...
  26. type HomeImgRequest struct {
  27. SVID int64 `json:"biz_id" form:"biz_id" validate:"required"`
  28. URL string `json:"url" form:"url" validate:"required"`
  29. Width int64 `json:"width" form:"width" validate:"required"`
  30. Height int64 `json:"height" form:"height" validate:"required"`
  31. }