request_params.go 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  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.TenantIDJsonBody
  16. request.CreateUserIDJsonBody
  17. request.OperatorUserNameJsonBody
  18. }
  19. DeleteMiniLiveConfigQueryParams struct {
  20. request.IDQueryParam
  21. request.DeleteUserIDQueryParams
  22. request.OperatorUserNameQueryParams
  23. }
  24. UpdateMiniLiveConfigJsonBody struct {
  25. request.IDJsonBody
  26. ComponentID string `json:"componentId" assign:"toField:ComponentID"`
  27. LiveTitle string `json:"liveTitle" assign:"toField:LiveTitle"`
  28. LiveCoverUrl string `json:"liveCoverUrl" assign:"toField:LiveCoverUrl"`
  29. LiveRoomID string `json:"liveRoomId" assign:"toField:LiveRoomID"`
  30. LiveStatus int `json:"liveStatus" assign:"toField:LiveStatus"`
  31. PlaceholderImage string `json:"placeholderImage" assign:"toField:PlaceholderImage"`
  32. PlaceholderText string `json:"placeholderText" assign:"toField:PlaceholderText"`
  33. IsEnabled string `json:"isEnabled" assign:"toField:IsEnabled"`
  34. request.UpdateUserIDJsonBody
  35. request.OperatorUserNameJsonBody
  36. }
  37. GetMiniLiveConfigsQueryParams struct {
  38. ComponentID string `form:"componentId" assign:"toField:ComponentID"`
  39. request.BaseQueryParams
  40. request.TenantIDQueryParam
  41. }
  42. GetMiniLiveConfigQueryParams struct {
  43. request.IDQueryParam
  44. }
  45. EnabledOrDisableJsonBody struct {
  46. request.IDJsonBody
  47. IsEnabled string `json:"isEnabled" assign:"toField:IsEnabled"`
  48. }
  49. /* HAC: HTTP RELATION REQUEST PARAMS */
  50. /* HAC: END HTTP RELATION REQUEST PARAMS */
  51. )