community_question.go 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103
  1. package yb
  2. import (
  3. "github.com/rdlucklib/rdluck_tools/paging"
  4. "time"
  5. )
  6. type CommunityQuestionListResp struct {
  7. Paging *paging.PagingItem
  8. List []*CommunityQuestionItem `description:"列表数据"`
  9. //Count *CommunityQuestionCount
  10. }
  11. type CommunityQuestionItem struct {
  12. CommunityQuestionId int `description:"问题ID"`
  13. UserId int `description:"提问用户ID"`
  14. Mobile string `description:"用户手机号"`
  15. RealName string `description:"用户名"`
  16. QuestionContent string `description:"问题描述"`
  17. ReplierUserId int `description:"回复人的user_id"`
  18. ReplierAdminId int `description:"回复人关联的admin_id"`
  19. ReplierRealName string `description:"回复人姓名"`
  20. ReplierAvatar string `description:"回复人头像"`
  21. ResearchGroupFirstId int `description:"回复人研究方向一级分组ID"`
  22. ResearchGroupSecondId int `description:"回复人研究方向二级分组ID"`
  23. ResearchGroupFirstName string `description:"研究方向一级分组名称"`
  24. ResearchGroupSecondName string `description:"研究方向二级分组名称"`
  25. ChartPermissionId int `description:"关联权限ID"`
  26. ChartPermissionName string `description:"关联权限name"`
  27. ReplyStatus int `description:"状态 1-待分配 2-待回答 3-已回答"`
  28. MsgSendStatus int `description:"消息推送进度 0-待推送 1-已推送回答人 2-已推送提问人"`
  29. ReplyTime string `description:"回复时间"`
  30. CreateTime string `description:"提问时间"`
  31. NeedRedistribute bool `description:"是否需要重新分配"`
  32. ClickNum int `description:"点击量"`
  33. StopReason string `description:"终止原因"`
  34. }
  35. type CommunityQuestionCount struct {
  36. Free int `json:"free"`
  37. Wait int `json:"wait"`
  38. Replied int `json:"replied"`
  39. Total int `json:"total"`
  40. }
  41. type QuestionClickLogListItem struct {
  42. UserId int
  43. SourceAgent int
  44. LastCreateTime string
  45. ClickNum int `description:"点击量"`
  46. RealName string
  47. CompanyName string
  48. CompanyStatus string
  49. CompanyId int
  50. }
  51. type QuestionCompanyUser struct {
  52. CommunityQuestionId int `description:"问题ID"`
  53. QuestionContent string `description:"问题描述"`
  54. UserId int
  55. RealName string
  56. CompanyName string
  57. CompanyStatus string
  58. CompanyId int
  59. }
  60. type QuestionClickLogListResp struct {
  61. Paging *paging.PagingItem
  62. List []*QuestionClickLogListItem `description:"列表数据"`
  63. Count int
  64. QuestionContent string `description:"问题描述"`
  65. }
  66. // CommunityQuestionCommentListResp 研报评论列表数据返回
  67. type CommunityQuestionCommentListResp struct {
  68. Paging *paging.PagingItem
  69. List []*CommunityQuestionCommentItem `description:"列表数据"`
  70. //Count *CommunityQuestionCount
  71. }
  72. // CommunityQuestionCommentItem 研报评论列表数据
  73. type CommunityQuestionCommentItem struct {
  74. CommunityQuestionCommentId uint64 `orm:"column(community_question_comment_id);pk;" description:"留言ID"`
  75. CommunityQuestionId int `orm:"column(community_question_id)" description:"社区问答id"`
  76. UserId uint64 `orm:"column(user_id)" description:"用户id"`
  77. Content string `orm:"column(content)" description:"留言内容"`
  78. IsTop int8 `orm:"column(is_top)" description:"是否置顶(0-未置顶,1-置顶)"`
  79. IsHot int8 `orm:"column(is_hot)" description:"是否设置精选(0-未设置,1-已设置)"`
  80. HotTopTime time.Time `orm:"column(hot_top_time)" description:"设置精选或者设置置顶的时间"`
  81. IsShowName int8 `orm:"column(is_show_name)" description:"是否匿名 0-匿名,1-不匿名"`
  82. SourceAgent int `orm:"column(source_agent)" description:"留言入口来源,1:小程序,2:小程序pc, 4:web pc"`
  83. TopTime time.Time `orm:"column(top_time)" description:"设置置顶的时间"`
  84. HotTime time.Time `orm:"column(hot_time)" description:"设置精选的时间"`
  85. ModifyTime time.Time `orm:"column(modify_time)" description:"修改时间"`
  86. CreateTime time.Time `orm:"column(create_time)" description:"创建时间"`
  87. QuestionContent string `description:"问题内容"`
  88. CompanyId int `description:"客户id"`
  89. UserName string `description:"评论人名称"`
  90. CompanyName string `description:"客户名称"`
  91. CompanyProductStatus string `description:"客户ficc状态"`
  92. Source int `description:"来源: 1-问答社区; 2-视频社区"`
  93. TagName string `description:"标签名称"`
  94. }