request_params.go 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. package traceability_video
  2. import (
  3. "git.sxidc.com/go-framework/baize/framework/core/api/request"
  4. )
  5. type (
  6. CreateTraceabilityVideoJsonBody struct {
  7. VideoTitle string `json:"videoTitle" binding:"required" assign:"toField:VideoTitle"`
  8. VideoCoverUrl string `json:"videoCoverUrl" binding:"required" assign:"toField:VideoCoverUrl"`
  9. VideoUrl string `json:"videoUrl" binding:"required" assign:"toField:VideoUrl"`
  10. VideoDescription string `json:"videoDescription" binding:"required" assign:"toField:VideoDescription"`
  11. request.CreateUserIDJsonBody
  12. request.OperatorUserNameJsonBody
  13. }
  14. DeleteTraceabilityVideoQueryParams struct {
  15. request.IDQueryParam
  16. request.DeleteUserIDQueryParams
  17. request.OperatorUserNameQueryParams
  18. }
  19. UpdateTraceabilityVideoJsonBody struct {
  20. request.IDJsonBody
  21. VideoTitle string `json:"videoTitle" assign:"toField:VideoTitle"`
  22. VideoCoverUrl string `json:"videoCoverUrl" assign:"toField:VideoCoverUrl"`
  23. VideoUrl string `json:"videoUrl" assign:"toField:VideoUrl"`
  24. VideoDescription string `json:"videoDescription" assign:"toField:VideoDescription"`
  25. request.UpdateUserIDJsonBody
  26. request.OperatorUserNameJsonBody
  27. }
  28. GetTraceabilityVideosQueryParams struct {
  29. VideoTitle string `json:"videoTitle" assign:"toField:VideoTitle"`
  30. request.BaseQueryParams
  31. }
  32. GetTraceabilityVideoQueryParams struct {
  33. request.IDQueryParam
  34. }
  35. /* HAC: HTTP RELATION REQUEST PARAMS */
  36. /* HAC: END HTTP RELATION REQUEST PARAMS */
  37. )