community.go 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108
  1. package request
  2. type QuestionListReq struct {
  3. PageIndex int `json:"page_index" form:"page_index"`
  4. PageSize int `json:"page_size" form:"page_size"`
  5. OnlyMine int `json:"only_mine" form:"only_mine"`
  6. VarietyTagId int `json:"variety_tag_id" form:"variety_tag_id"`
  7. ReplyStatus int `json:"reply_status" form:"reply_status"`
  8. GroupId int `json:"group_id" form:"group_id"`
  9. }
  10. type QuestionDetailReq struct {
  11. QuestionId int `json:"question_id" form:"question_id"`
  12. }
  13. type QuestionAskReq struct {
  14. QuestionContent string `json:"question_content"`
  15. VarietyClassifyId int `json:"variety_classify_id" description:"标签分类"`
  16. VarietyTagId int `json:"variety_tag_id" description:"标签ID"`
  17. }
  18. type QuestionReplyReq struct {
  19. QuestionId int `json:"question_id" form:"question_id"`
  20. AudioList []*ReplyReqAudioList `json:"audio_list" form:"audio_list"`
  21. }
  22. type ReplyReqAudioList struct {
  23. AudioUrl string `json:"audio_url" form:"audio_url"`
  24. AudioPlaySeconds string `json:"audio_play_seconds" form:"audio_url"`
  25. AudioSize string `json:"audio_size" form:"audio_size"`
  26. Sort int `json:"sort" form:"sort"`
  27. }
  28. type QuestionReadReq struct {
  29. QuestionIds string `json:"question_ids" form:"question_ids"`
  30. }
  31. type ReplyListTotalReq struct {
  32. ReplierUserId int `json:"replier_user_id" form:"replier_user_id"`
  33. }
  34. type CommunityAudioListenLogReq struct {
  35. CommunityQuestionAudioID int `json:"community_question_audio_id"` //音频ID
  36. SourceAgent int `json:"source_agent"` //操作来源,1:小程序,2:小程序 pc 3:弘则研究公众号,4:web pc
  37. }
  38. type VideoListReq struct {
  39. PageIndex int `json:"page_index" form:"page_index"`
  40. PageSize int `json:"page_size" form:"page_size"`
  41. Keywords string `json:"keywords" form:"keywords"`
  42. VideoId int `json:"video_id" form:"video_id"`
  43. VarietyTagId int `json:"variety_tag_id" form:"variety_tag_id"`
  44. }
  45. type VideoPlayLogReq struct {
  46. VideoId int `json:"video_id" description:"视频ID"`
  47. SourceAgent int `json:"source_agent" description:"来源:1-小程序 2-小程序PC 3-公众号 4-Web官网"`
  48. }
  49. type RoadVideoPlayLogReq struct {
  50. VideoId int `json:"video_id" description:"视频ID"`
  51. SourceAgent int `json:"source_agent" description:"来源:1-小程序 2-小程序PC 3-公众号 4-Web官网"`
  52. }
  53. type RoadVideoListReq struct {
  54. PageIndex int `json:"page_index" form:"page_index"`
  55. PageSize int `json:"page_size" form:"page_size"`
  56. Keywords string `json:"keywords" form:"keywords"`
  57. VideoId int `json:"video_id" form:"video_id"`
  58. ChartPermissionId int `json:"chart_permission_id" form:"chart_permission_id"`
  59. }
  60. // ReqCommunityQuestionLikeTease 问答点赞/吐槽请求
  61. type ReqCommunityQuestionLikeTease struct {
  62. CommunityQuestionId uint32 `description:"问答id" json:"community_question_id" `
  63. OpType int8 `description:"类型. 1-点赞 2-吐槽" json:"op_type"`
  64. Enable int8 `description:"状态. 0-无效数据(已取消点赞/吐槽) 1-有效数据(点赞/吐槽)" json:"enable"`
  65. SourceAgent int8 `description:"点赞入口来源,1:小程序,2:小程序pc" json:"source_agent"`
  66. Source int8 `description:"来源:1-问答社区; 2-视频社区"`
  67. }
  68. // ReqComment 问答新增评论请求
  69. type ReqComment struct {
  70. CommunityQuestionID uint32 `description:"问答id" json:"community_question_id" `
  71. Content string `description:"留言内容" json:"content"`
  72. IsShowName int8 `description:"是否匿名 0-匿名,1-不匿名" json:"is_show_name"`
  73. SourceAgent int8 `description:"留言入口来源,1:小程序,2:pc" json:"source_agent"`
  74. Source int8 `description:"来源:1-问答社区; 2-视频社区"`
  75. }
  76. // ReqDel 删除评论
  77. type ReqDel struct {
  78. CommunityQuestionCommentID uint64 `description:"留言ID" json:"community_question_comment_id"`
  79. }
  80. // QuestionTransferReq 转移问答请求体
  81. type QuestionTransferReq struct {
  82. CommunityQuestionID int `json:"community_question_id"`
  83. VarietyClassifyId int `json:"variety_classify_id" description:"标签分类"`
  84. VarietyTagId int `json:"variety_tag_id" description:"标签ID"`
  85. AdminId int `json:"admin_id"`
  86. }
  87. // QuestionStopReq 终止问答请求体
  88. type QuestionStopReq struct {
  89. CommunityQuestionID int `json:"community_question_id"`
  90. Reason string `json:"reason" description:"终止原因"`
  91. }