request_params.go 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. package mini_live_config
  2. import (
  3. "git.sxidc.com/go-framework/baize/framework/core/api/request"
  4. )
  5. type (
  6. CreateMiniLiveConfigJsonBody struct {
  7. ComponentID string `json:"componentId" binding:"required" assign:"toField:ComponentID"`
  8. LiveTitle string `json:"liveTitle" binding:"required" assign:"toField:LiveTitle"`
  9. LiveCoverUrl string `json:"liveCoverUrl" assign:"toField:LiveCoverUrl"`
  10. LiveRoomID string `json:"liveRoomId" assign:"toField:LiveRoomID"`
  11. LiveStatus int `json:"liveStatus" binding:"required" assign:"toField:LiveStatus"`
  12. PlaceholderImage string `json:"placeholderImage" binding:"required" assign:"toField:PlaceholderImage"`
  13. PlaceholderText string `json:"placeholderText" binding:"required" assign:"toField:PlaceholderText"`
  14. IsEnabled string `json:"isEnabled" binding:"required" assign:"toField:IsEnabled"`
  15. request.CreateUserIDJsonBody
  16. request.OperatorUserNameJsonBody
  17. }
  18. DeleteMiniLiveConfigQueryParams struct {
  19. request.IDQueryParam
  20. request.DeleteUserIDQueryParams
  21. request.OperatorUserNameQueryParams
  22. }
  23. UpdateMiniLiveConfigJsonBody struct {
  24. request.IDJsonBody
  25. ComponentID string `json:"componentId" assign:"toField:ComponentID"`
  26. LiveTitle string `json:"liveTitle" assign:"toField:LiveTitle"`
  27. LiveCoverUrl string `json:"liveCoverUrl" assign:"toField:LiveCoverUrl"`
  28. LiveRoomID string `json:"liveRoomId" assign:"toField:LiveRoomID"`
  29. LiveStatus int `json:"liveStatus" assign:"toField:LiveStatus"`
  30. PlaceholderImage string `json:"placeholderImage" assign:"toField:PlaceholderImage"`
  31. PlaceholderText string `json:"placeholderText" assign:"toField:PlaceholderText"`
  32. IsEnabled string `json:"isEnabled" assign:"toField:IsEnabled"`
  33. request.UpdateUserIDJsonBody
  34. request.OperatorUserNameJsonBody
  35. }
  36. GetMiniLiveConfigsQueryParams struct {
  37. ComponentID string `form:"componentId" assign:"toField:ComponentID"`
  38. request.BaseQueryParams
  39. }
  40. GetMiniLiveConfigQueryParams struct {
  41. request.IDQueryParam
  42. }
  43. EnabledOrDisableJsonBody struct {
  44. request.IDJsonBody
  45. IsEnabled string `json:"isEnabled" assign:"toField:IsEnabled"`
  46. }
  47. /* HAC: HTTP RELATION REQUEST PARAMS */
  48. /* HAC: END HTTP RELATION REQUEST PARAMS */
  49. )