talent_platform_brief.go 7.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149
  1. package talent_model
  2. import (
  3. "github.com/gogf/gf/util/gmeta"
  4. )
  5. type BilibiliBriefInfo struct {
  6. gmeta.Meta `orm:"table:platform_bilibili_account_info"`
  7. PlatformNickname string `json:"platform_nickname"`
  8. FansCount int64 `json:"fans_count"` // 粉丝数
  9. GotLikeCount int64 `json:"got_like_count"` // 点赞数
  10. TalentId int `json:"talent_id"` // 达人账号id(talent_info表id值)
  11. }
  12. type DianpingBriefInfo struct {
  13. gmeta.Meta `orm:"table:platform_dianping_account_info"`
  14. PlatformNickname string `json:"platform_nickname"`
  15. FansCount int64 `json:"fansCount"` // 粉丝数
  16. GotLikeCount int64 `json:"gotLikeCount"` // 点赞数
  17. TalentId int `json:"talentId"` // 达人账号id(talent_info表id值)
  18. }
  19. type KuaishouBriefInfo struct {
  20. gmeta.Meta `orm:"table:platform_kuaishou_account_info"`
  21. PlatformNickname string `json:"platform_nickname"`
  22. FansCount int64 `json:"fansCount"` // 粉丝数
  23. CompositionCount int64 `json:"compositionCount"` // 作品数量
  24. TalentId int `json:"talentId"` // 达人账号id(talent_info表id值)
  25. }
  26. type LittleRedBookBriefInfo struct {
  27. gmeta.Meta `orm:"table:platform_little_red_book_account_info"`
  28. PlatformNickname string `json:"platform_nickname"`
  29. FansCount int64 `json:"fansCount"` // 粉丝数
  30. GotLikeCount int64 `json:"gotLikeCount"` // (点)赞(收)藏数
  31. TalentId int `json:"talentId"` // 达人账号id(talent_info表id值)
  32. }
  33. type TiktokBriefInfo struct {
  34. gmeta.Meta `orm:"table:platform_tiktok_account_info"`
  35. PlatformNickname string `json:"platform_nickname"`
  36. FansCount int64 `json:"fansCount"` // 粉丝数
  37. GotLikeCount int64 `json:"gotLikeCount"` // 点赞数
  38. TalentId int `json:"talentId"` // 达人账号id(talent_info表id值)
  39. }
  40. type WeiboBriefInfo struct {
  41. gmeta.Meta `orm:"table:platform_weibo_account_info"`
  42. PlatformNickname string `json:"platform_nickname"` //平台昵称
  43. FansCount int64 `json:"fansCount"` // 粉丝数
  44. WeiboTotalNum int64 `json:"weiboTotalNum"` // 微博总量
  45. TalentId int `json:"talentId"` // 达人账号id(talent_info表id值)
  46. }
  47. type ZhihuBriefInfo struct {
  48. gmeta.Meta `orm:"table:platform_zhihu_account_info"`
  49. PlatformNickname string `json:"platform_nickname"` //平台昵称
  50. FansCount int64 `json:"fansCount"` // 粉丝数
  51. GotAgreeCount int64 `json:"gotAgreeCount"` // 被赞同总数
  52. TalentId int `json:"talentId"` // 达人账号id(talent_info表的id值)
  53. }
  54. type TalentLittleRedBookBriefInfo struct {
  55. gmeta.Meta `orm:"table:r_talent_platform_table"`
  56. Tid int `json:"-"` // 达人id(talent_info表中的id)
  57. PId int `json:"p_id"` // 平台id(info_third_platform表中的id)
  58. ExamineState int `json:"examineState"` // 审核状态 0待审核 1审核通过 2审核驳回
  59. FailReason string `json:"failReason"` // 审核驳回原因
  60. LittleRedBookBrief *LittleRedBookBriefInfo `orm:"with:talent_id=tid"`
  61. }
  62. type TalentTiktokBriefInfo struct {
  63. gmeta.Meta `orm:"table:r_talent_platform_table"`
  64. Tid int `json:"-"` // 达人id(talent_info表中的id)
  65. PId int `json:"p_id"` // 平台id(info_third_platform表中的id)
  66. ExamineState int `json:"examineState"` // 审核状态 0待审核 1审核通过 2审核驳回
  67. FailReason string `json:"failReason"` // 审核驳回原因
  68. TiktokBrief *TiktokBriefInfo `orm:"with:talent_id=tid"`
  69. }
  70. type TalentWeiboBriefInfo struct {
  71. gmeta.Meta `orm:"table:r_talent_platform_table"`
  72. Tid int `json:"-"` // 达人id(talent_info表中的id)
  73. PId int `json:"p_id"` // 平台id(info_third_platform表中的id)
  74. ExamineState int `json:"examineState"` // 审核状态 0待审核 1审核通过 2审核驳回
  75. FailReason string `json:"failReason"` // 审核驳回原因
  76. WeiboBrief *WeiboBriefInfo `orm:"with:talent_id=tid"`
  77. }
  78. type TalentKuaishouBriefInfo struct {
  79. gmeta.Meta `orm:"table:r_talent_platform_table"`
  80. Tid int `json:"-"` // 达人id(talent_info表中的id)
  81. PId int `json:"p_id"` // 平台id(info_third_platform表中的id)
  82. ExamineState int `json:"examineState"` // 审核状态 0待审核 1审核通过 2审核驳回
  83. FailReason string `json:"failReason"` // 审核驳回原因
  84. KuaishouBrief *KuaishouBriefInfo `orm:"with:talent_id=tid"`
  85. }
  86. type TalentBilibliBriefInfo struct {
  87. gmeta.Meta `orm:"table:r_talent_platform_table"`
  88. Tid int `json:"-"` // 达人id(talent_info表中的id)
  89. PId int `json:"p_id"` // 平台id(info_third_platform表中的id)
  90. ExamineState int `json:"examineState"` // 审核状态 0待审核 1审核通过 2审核驳回
  91. FailReason string `json:"failReason"` // 审核驳回原因
  92. BilibiliBrief *BilibiliBriefInfo `orm:"with:talent_id=tid"`
  93. }
  94. type TalentDianpingBriefInfo struct {
  95. gmeta.Meta `orm:"table:r_talent_platform_table"`
  96. Tid int `json:"-"` // 达人id(talent_info表中的id)
  97. PId int `json:"p_id"` // 平台id(info_third_platform表中的id)
  98. ExamineState int `json:"examineState"` // 审核状态 0待审核 1审核通过 2审核驳回
  99. FailReason string `json:"failReason"` // 审核驳回原因
  100. DianpingBrief *DianpingBriefInfo `orm:"with:talent_id=tid"`
  101. }
  102. type TalentZhihuBriefInfo struct {
  103. gmeta.Meta `orm:"table:r_talent_platform_table"`
  104. Tid int `json:"-"` // 达人id(talent_info表中的id)
  105. PId int `json:"p_id"` // 平台id(info_third_platform表中的id)
  106. ExamineState int `json:"examineState"` // 审核状态 0待审核 1审核通过 2审核驳回
  107. FailReason string `json:"failReason"` // 审核驳回原因
  108. ZhihuBrief *ZhihuBriefInfo `orm:"with:talent_id=tid"`
  109. }
  110. type TalentPlatformBriefInfo struct {
  111. gmeta.Meta `orm:"table:talent_info"`
  112. Id int `json:"id"` //
  113. TalentWxOpenid string `json:"talentWxOpenid"` // 达人的微信openid
  114. TalentWxNickname string `json:"talentWxNickname"` // 达人的微信昵称
  115. LittleRedBookBriefInfo *TalentLittleRedBookBriefInfo `orm:"with:tid=id, where:p_id=1"`
  116. TiktokBriefInfo *TalentTiktokBriefInfo `orm:"with:tid=id, where:p_id=2"`
  117. WeiboBriefInfo *TalentWeiboBriefInfo `orm:"with:tid=id, where:p_id=3"`
  118. KuaishouBriefInfo *TalentKuaishouBriefInfo `orm:"with:tid=id, where:p_id=4"`
  119. BiliBiliBriefInfo *TalentBilibliBriefInfo `orm:"with:tid=id, where:p_id=5"`
  120. DianpingBriefInfo *TalentDianpingBriefInfo `orm:"with:tid=id, where:p_id=6"`
  121. ZhihuBriefInfo *TalentZhihuBriefInfo `orm:"with:tid=id, where:p_id=7"`
  122. }