voice_broadcast.go 2.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. package request
  2. type BroadcastListReq struct {
  3. PageIndex int `json:"page_index" form:"page_index"`
  4. PageSize int `json:"page_size" form:"page_size"`
  5. BroadcastId int `json:"broadcast_id" form:"broadcast_id"`
  6. SectionId int `json:"section_id" form:"section_id"`
  7. AuthorId int `json:"author_id" form:"author_id" description:"我的语音播报作者ID"`
  8. MineStatus int `json:"mine_status" form:"mine_status" description:"我的语音播报状态:0-未发布 1-已发布 2-全部"`
  9. }
  10. type AddBroadcastStatisticsReq struct {
  11. Source int `json:"source" description:"点击来源,1手机小程序,2pc小程序,3web端"`
  12. BroadcastId int `json:"broadcast_id" `
  13. }
  14. type BroadcastDetailReq struct {
  15. BroadcastId int `json:"broadcast_id" form:"broadcast_id" description:"语音播报ID"`
  16. }
  17. type BroadcastMsgSendReq struct {
  18. BroadcastId int `json:"broadcast_id" description:"语音播报ID"`
  19. }
  20. type SaveBroadcastReq struct {
  21. BroadcastId int `json:"broadcast_id" form:"broadcast_id" description:"语音播报ID"`
  22. BroadcastName string `json:"broadcast_name" description:"语音标题"`
  23. SectionId int `json:"section_id" form:"section_id" description:"板块ID"`
  24. SectionName string `json:"section_name" form:"section_name" description:"板块名称"`
  25. VarietyId int `json:"variety_id" form:"variety_id" description:"品种ID"`
  26. VarietyName string `json:"variety_name" form:"variety_name" description:"品种名称"`
  27. AuthorId int `json:"author_id" form:"author_id" description:"作者ID"`
  28. Author string `json:"author" form:"author" description:"作者名称"`
  29. Imgs string `json:"imgs" form:"imgs" description:"图片,英文逗号拼接"`
  30. VoiceSeconds string `json:"voice_seconds" form:"voice_seconds" description:"音频时长"`
  31. VoiceSize string `json:"voice_size" form:"voice_size" description:"音频大小"`
  32. VoiceUrl string `json:"voice_url" form:"voice_url" description:"音频文件地址"`
  33. }
  34. type PublishBroadcastReq struct {
  35. BroadcastId int `json:"broadcast_id" form:"broadcast_id" description:"语音播报ID"`
  36. PublishType int `json:"publish_type" form:"publish_type" description:"发布类型: 1-发布 2-定时发布"`
  37. ImgUrl string `json:"img_url" form:"img_url" description:"分享背景图"`
  38. PrePublishTime string `json:"pre_publish_time" form:"pre_publish_time" description:"预发布时间"`
  39. }
  40. type BroadcastListCountReq struct {
  41. AuthorId int `json:"author_id" form:"author_id" description:"作者ID"`
  42. SectionId int `json:"section_id" form:"section_id" description:"板块ID"`
  43. }