community.go 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172
  1. package response
  2. import "time"
  3. type CommunityQuestionItem struct {
  4. CommunityQuestionID int `json:"community_question_id"`
  5. UserId int `json:"user_id"`
  6. QuestionContent string `json:"question_content"`
  7. ReplierRealName string `json:"replier_real_name"`
  8. ReplierRank string `json:"replier_rank"`
  9. ReplierAvatar string `json:"replier_avatar"`
  10. VarietyTagId int `json:"variety_tag_id"`
  11. VarietyTagName string `json:"variety_tag_name"`
  12. ResearchGroupSecondId int `json:"research_group_second_id"`
  13. ResearchGroupSecondName string `json:"research_group_second_name"`
  14. IsRead int `json:"is_read"`
  15. ReplierUserID int `json:"replier_user_id" description:"回复人的user_id"`
  16. ReplierIsRead int `json:"replier_is_read"`
  17. CreateTime string `json:"create_time"`
  18. ReplyTime string `json:"reply_time"`
  19. IsTop int `json:"is_top"`
  20. ReplyStatus int `json:"reply_status" description:"回复状态 1-待分配 2-待回答 3-已回答"`
  21. StopReason string `json:"stop_reason" description:"终止理由"`
  22. //AuthOk bool `json:"auth_ok" description:"是否有权限"`
  23. //PermissionInfo PermissionCheckInfo `json:"permission_info"`
  24. AudioList []*CommunityQuestionAudioItem `json:"audio_list"`
  25. OpType int8 `description:"类型. 1-点赞 2-吐槽" json:"op_type"`
  26. LikeTotal int `json:"like_total" description:"点赞数"`
  27. TeaseTotal int `json:"tease_total" description:"吐槽数"`
  28. CommentTotal int `json:"comment_total" description:"总共评论数"`
  29. //Comment string `json:"comment" description:"评论"`
  30. //CommentUserName string `json:"comment_user_name" description:"评论人"`
  31. //QaAvatarUrl string `description:"用户头像" json:"qa_avatar_url"`
  32. CommentList []*CommunityQuestionCommentListItem `json:"comment_list"`
  33. }
  34. type CommunityQuestionAudioItem struct {
  35. CommunityQuestionAudioID int `json:"community_question_audio_id"`
  36. CommunityQuestionID int `json:"community_question_id"`
  37. AudioURL string `json:"audio_url"`
  38. AudioPlaySeconds string `json:"audio_play_seconds"`
  39. AudioSize string `json:"audio_size"`
  40. Sort int `json:"sort"`
  41. }
  42. type CommunityQuestionListTotal struct {
  43. Wait int `json:"wait"` //未回答的数量
  44. Replied int `json:"replied"` //已回答的数量
  45. Total int `json:"total"` //全部的数量
  46. Distribute int `json:"distribute"` //待回答的数量
  47. Stop int `json:"stop"` // 已终止的数量
  48. }
  49. type CommunityQuestionAudioUpload struct {
  50. AudioURL string `json:"audio_url"`
  51. AudioPlaySeconds string `json:"audio_play_seconds"`
  52. AudioSize string `json:"audio_size"`
  53. }
  54. // ResearchGroup 研究方向分组表
  55. type ResearchGroupItem struct {
  56. ResearchGroupId int `json:"research_group_id" description:"研究方向分组ID"`
  57. ResearchGroupName string `json:"research_group_name" description:"研究方向分组名称"`
  58. ParentId int `json:"parent_id" description:"父类ID"`
  59. ChartPermissionId int `json:"chart_permission_id" description:"品种权限ID"`
  60. Sort int `json:"sort" description:"排序"`
  61. Members []*ResearchGroupMember `json:"members"`
  62. Children []*ResearchGroupItem `json:"children"`
  63. }
  64. // ResearchGroupMember 研究方向组员信息
  65. type ResearchGroupMember struct {
  66. AdminId int `json:"admin_id"`
  67. AdminName string `json:"admin_name"`
  68. }
  69. // CommunityVideoItem 视频社区
  70. type CommunityVideoItem struct {
  71. CommunityVideoID int `json:"community_video_id"`
  72. Title string `json:"title"`
  73. VarietyTagId int `json:"variety_tag_id"`
  74. VarietyTagName string `json:"variety_tag_name"`
  75. CoverImgUrl string `json:"cover_img_url"`
  76. VideoUrl string `json:"video_url"`
  77. VideoSeconds string `json:"video_seconds"`
  78. PublishState int `json:"publish_state"`
  79. PublishTime string `json:"publish_time"`
  80. CreateTime string `json:"create_time"`
  81. ModifyTime string `json:"modify_time"`
  82. ChartPermissionName string `json:"chart_permission_name"`
  83. OpType int8 `description:"类型. 1-点赞 2-吐槽" json:"op_type"`
  84. LikeTotal int `json:"like_total" description:"点赞数"`
  85. TeaseTotal int `json:"tease_total" description:"吐槽数"`
  86. CommentTotal int `json:"comment_total" description:"总共评论数"`
  87. CommentList []*CommunityQuestionCommentListItem `json:"comment_list"`
  88. CollectionId int `description:"收藏ID: 大于0则表示已收藏" json:"collection_id"`
  89. BulletChatList []*BulletChatItem `json:"bullet_chat_list" description:"弹幕列表"`
  90. }
  91. // RoadVideoItem 线上路演
  92. type RoadVideoItem struct {
  93. RoadVideoID int `json:"road_video_id"`
  94. Title string `json:"title"`
  95. ChartPermissionIds string `json:"chart_permission_ids"`
  96. ChartPermissionName string `json:"chart_permission_name"`
  97. CoverImgUrl string `json:"cover_img_url"`
  98. VideoUrl string `json:"video_url"`
  99. VideoSeconds string `json:"video_seconds"`
  100. PublishState int `json:"publish_state"`
  101. AdminId int `json:"admin_id"`
  102. AdminRealName string `json:"admin_real_name"`
  103. PublishTime string `json:"publish_time"`
  104. CreateTime string `json:"create_time"`
  105. ModifyTime string `json:"modify_time"`
  106. CollectionId int `description:"收藏ID: 大于0则表示已收藏" json:"collection_id"`
  107. OpType int8 `description:"类型. 1-点赞 2-吐槽" json:"op_type"`
  108. LikeTotal int `json:"like_total" description:"点赞数"`
  109. TeaseTotal int `json:"tease_total" description:"吐槽数"`
  110. CommentTotal int `json:"comment_total" description:"总共评论数"`
  111. ReportId int `json:"report_id" description:"绑定的报告ID"`
  112. CommentList []*CommunityQuestionCommentListItem `json:"comment_list"`
  113. BulletChatList []*BulletChatItem `json:"bullet_chat_list" description:"弹幕列表"`
  114. }
  115. type RoadVideoItemResp struct {
  116. List []*RoadVideoItem `json:"list"`
  117. Paging *PagingItem `json:"paging"`
  118. }
  119. // RespCommunityQuestionLikeTease
  120. type RespCommunityQuestionLikeTease struct {
  121. LikeTotal int64 `description:"点赞总数" json:"like_total"`
  122. TeaseTotal int64 `description:"吐槽总数" json:"tease_total"`
  123. OpType int8 `description:"类型. 1-点赞 2-吐槽" json:"op_type"`
  124. Enabled int8 `description:"本次点赞/吐槽结果: 0-已取消赞 1-有效赞" json:"enabled"`
  125. }
  126. // RespCommunityQuestionCommentAdd 新增问答留言返回
  127. type RespCommunityQuestionCommentAdd struct {
  128. CommunityQuestionCommentID uint64 `description:"留言ID" json:"community_question_comment_id"`
  129. }
  130. // RespCommunityQuestionCommentItem 问答留言列表的数据返回
  131. type RespCommunityQuestionCommentItem struct {
  132. CommunityQuestionCommentID uint64 `description:"留言ID" json:"community_question_comment_id"`
  133. UserId uint64 `description:"用户id" json:"user_id"`
  134. Content string `description:"留言内容" json:"content"`
  135. IsTop int8 `description:"是否置顶(0-未置顶,1-置顶)" json:"is_top"`
  136. IsHot int8 `description:"是否设置精选(0-未设置,1-已设置)" json:"is_hot"`
  137. HotTopTime time.Time `description:"设置精选或者设置置顶的时间" json:"hot_top_time"`
  138. IsShowName int8 `description:"是否匿名 0-匿名,1-不匿名" json:"is_show_name"`
  139. UserName string `description:"用户昵称" json:"user_name"`
  140. UserImgUrl string `description:"用户头像" json:"user_img_url"`
  141. CreateTime time.Time `description:"留言创建时间" json:"create_time"`
  142. QaAvatarUrl string `description:"用户头像" json:"qa_avatar_url"`
  143. ReplyList []*ReplyItem
  144. }
  145. // RespCommunityQuestionCommentList 问答留言列表接口返回
  146. type RespCommunityQuestionCommentList struct {
  147. List []*RespCommunityQuestionCommentItem `json:"list"`
  148. Paging *PagingItem `json:"paging"`
  149. HotTotal int64 `json:"hot_total"`
  150. MyTotal int64 `json:"my_total"`
  151. }
  152. // CommunityQuestionCommentListItem 问答列表评论列表
  153. type CommunityQuestionCommentListItem struct {
  154. QaAvatarUrl string `description:"用户头像" json:"qa_avatar_url"`
  155. Comment string `description:"评论" json:"comment"`
  156. //CommentUserName string `description:"评论人" json:"comment_user_name"`
  157. }