request_params.go 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. package mini_video_config
  2. import (
  3. "git.sxidc.com/go-framework/baize/framework/core/api/request"
  4. )
  5. type (
  6. CreateMiniVideoConfigJsonBody struct {
  7. ComponentID string `json:"componentId" binding:"required" assign:"toField:ComponentID"`
  8. VideoTitle string `json:"videoTitle" binding:"required" assign:"toField:VideoTitle"`
  9. VideoUrl string `json:"videoUrl" binding:"required" assign:"toField:VideoUrl"`
  10. VideoCover string `json:"videoCover" binding:"required" assign:"toField:VideoCover"`
  11. VideoDuration int `json:"videoDuration" assign:"toField:VideoDuration"`
  12. AutoPlay string `json:"autoPlay" binding:"required" assign:"toField:AutoPlay"`
  13. ShowControls string `json:"showControls" binding:"required" assign:"toField:ShowControls"`
  14. IsEnabled string `json:"isEnabled" binding:"required" assign:"toField:IsEnabled"`
  15. request.CreateUserIDJsonBody
  16. request.OperatorUserNameJsonBody
  17. }
  18. DeleteMiniVideoConfigQueryParams struct {
  19. request.IDQueryParam
  20. request.DeleteUserIDQueryParams
  21. request.OperatorUserNameQueryParams
  22. }
  23. UpdateMiniVideoConfigJsonBody struct {
  24. request.IDJsonBody
  25. ComponentID string `json:"componentId" assign:"toField:ComponentID"`
  26. VideoTitle string `json:"videoTitle" assign:"toField:VideoTitle"`
  27. VideoUrl string `json:"videoUrl" assign:"toField:VideoUrl"`
  28. VideoCover string `json:"videoCover" assign:"toField:VideoCover"`
  29. VideoDuration int `json:"videoDuration" assign:"toField:VideoDuration"`
  30. AutoPlay string `json:"autoPlay" assign:"toField:AutoPlay"`
  31. ShowControls string `json:"showControls" assign:"toField:ShowControls"`
  32. IsEnabled string `json:"isEnabled" assign:"toField:IsEnabled"`
  33. request.UpdateUserIDJsonBody
  34. request.OperatorUserNameJsonBody
  35. }
  36. GetMiniVideoConfigsQueryParams struct {
  37. ComponentID string `form:"componentId" assign:"toField:ComponentID"`
  38. VideoTitle string `form:"videoTitle" assign:"toField:VideoTitle"`
  39. request.BaseQueryParams
  40. }
  41. GetMiniVideoConfigQueryParams struct {
  42. request.IDQueryParam
  43. }
  44. EnabledOrDisableJsonBody struct {
  45. request.IDJsonBody
  46. IsEnabled string `json:"isEnabled" assign:"toField:IsEnabled"`
  47. }
  48. /* HAC: HTTP RELATION REQUEST PARAMS */
  49. /* HAC: END HTTP RELATION REQUEST PARAMS */
  50. )