蛋蛋星球-制度模式
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

233 lines
6.4 KiB

  1. package md
  2. const EggEnergyUserEggScoreEsAlias = "egg_energy_user_egg_score"
  3. const EggEnergyUserEggScoreEsMapping = `
  4. {
  5. "settings" : {
  6. "number_of_shards" : 2,
  7. "number_of_replicas" : 1
  8. },
  9. "aliases": {
  10. "egg_energy_user_egg_score": {}
  11. },
  12. "mappings":{
  13. "properties":{
  14. "uid":{
  15. "type": "integer"
  16. },
  17. "score_value":{
  18. "type": "float"
  19. },
  20. "score_value_kind":{
  21. "type": "short"
  22. },
  23. "ecpm":{
  24. "type": "float"
  25. },
  26. "invite_user_nums":{
  27. "type": "integer"
  28. },
  29. "team_activity_nums":{
  30. "type": "integer"
  31. },
  32. "sign_in_nums":{
  33. "type": "short"
  34. },
  35. "im_activity_nums":{
  36. "type": "short"
  37. },
  38. "send_red_package_nums":{
  39. "type": "short"
  40. },
  41. "egg_energy_exchange_account_balance":{
  42. "type": "integer"
  43. },
  44. "account_balance_exchange_egg_energy_nums":{
  45. "type": "integer"
  46. },
  47. "send_circle_of_friend_nums":{
  48. "type": "short"
  49. },
  50. "forum_comments_nums":{
  51. "type": "integer"
  52. },
  53. "college_learning_nums":{
  54. "type": "short"
  55. },
  56. "violate_nums":{
  57. "type": "short"
  58. },
  59. "browse_interface_nums":{
  60. "type": "integer"
  61. },
  62. "person_add_activity_value":{
  63. "type": "integer"
  64. },
  65. "created_at":{
  66. "type": "date",
  67. "format": "yyyy-MM-dd HH:mm:ss||yyyy-MM-dd||epoch_millis"
  68. },
  69. "updated_at":{
  70. "type": "date",
  71. "format": "yyyy-MM-dd HH:mm:ss||yyyy-MM-dd||epoch_millis"
  72. }
  73. }
  74. }
  75. }`
  76. type EggEnergyUserEggScoreEs struct {
  77. Uid int64 `json:"uid" label:"uid"`
  78. ScoreValue float64 `json:"score_value" label:"蛋蛋分值"`
  79. ScoreValueKind int32 `json:"score_value_kind" label:"评分类型(0:未知 1:人工 2:系统)"`
  80. Ecpm float64 `json:"ecpm" label:"ecpm"`
  81. InviteUserNums int `json:"invite_user_nums" label:"拉新人数"`
  82. TeamActivityNums int `json:"team_activity_nums" label:"团队活跃次数"`
  83. SignInNums int `json:"sign_in_nums" label:"签到次数"`
  84. ImActivityNums int `json:"im_activity_nums" label:"im活跃次数"`
  85. SendRedPackageNums int `json:"send_red_package_nums" label:"发红包次数"`
  86. EggEnergyExchangeAccountBalance int `json:"egg_energy_exchange_account_balance" label:"蛋蛋能量兑换余额数量"`
  87. AccountBalanceExchangeEggEnergyNums int `json:"account_balance_exchange_egg_energy_nums" label:"余额兑换蛋蛋能量数量"`
  88. SendCircleOfFriendNums int `json:"send_circle_of_friend_nums" label:"发朋友圈次数"`
  89. ForumCommentsNums int `json:"forum_comments_nums" label:"论坛评论次数"`
  90. CollegeLearningNums int `json:"college_learning_nums" label:"学院学习次数"`
  91. ViolateNums int `json:"violate_nums" label:"违规次数"`
  92. BrowseInterfaceNums int `json:"browse_interface_nums" label:"浏览界面次数"`
  93. PersonAddActivityValue int `json:"person_add_activity_value" label:"个人活跃积分"`
  94. CreatedAt string `json:"created_at"`
  95. UpdatedAt string `json:"updated_at"`
  96. }
  97. const EggFriendCircleEsAlias = "egg_friend_circle"
  98. const EggFriendCircleEsIndex = "egg_friend_circle_1"
  99. const EggFriendCircleEsMapping = `
  100. {
  101. "settings" : {
  102. "number_of_shards" : 2,
  103. "number_of_replicas" : 1
  104. },
  105. "aliases": {
  106. "egg_friend_circle": {}
  107. },
  108. "mappings":{
  109. "properties":{
  110. "uid":{
  111. "type": "integer"
  112. },
  113. "kind":{
  114. "type": "short"
  115. },
  116. "content":{
  117. "type": "text",
  118. "analyzer": "ik_smart"
  119. },
  120. "image":{
  121. "type": "keyword"
  122. },
  123. "video":{
  124. "type": "keyword"
  125. },
  126. "likes_nums":{
  127. "type": "integer"
  128. },
  129. "comment_nums":{
  130. "type": "integer"
  131. },
  132. "share_nums":{
  133. "type": "integer"
  134. },
  135. "state":{
  136. "type": "short"
  137. },
  138. "is_praise":{
  139. "type": "short"
  140. },
  141. "is_top_up":{
  142. "type": "short"
  143. },
  144. "created_at":{
  145. "type": "date",
  146. "format": "yyyy-MM-dd HH:mm:ss||yyyy-MM-dd||epoch_millis"
  147. },
  148. "updated_at":{
  149. "type": "date",
  150. "format": "yyyy-MM-dd HH:mm:ss||yyyy-MM-dd||epoch_millis"
  151. }
  152. }
  153. }
  154. }`
  155. type EggFriendCircleEs struct {
  156. Uid int64 `json:"uid" label:"uid"`
  157. Kind int32 `json:"kind" label:"类型(1:普通 2:官方)"`
  158. Content string `json:"content" label:"文本内容"`
  159. Image string `json:"image" label:"图片"`
  160. Video string `json:"video" label:"视频"`
  161. LikesNums int `json:"likes_nums" label:"点赞数"`
  162. ShareNums int `json:"share_nums" label:"分享数"`
  163. CommentNums int `json:"comment_nums" label:"评论数"`
  164. State int32 `json:"state" label:"状态(1:正常 2:隐藏)"`
  165. IsTopUp int32 `json:"is_top_up" label:"是否置顶(1:是 2:否)"`
  166. IsPraise int32 `json:"is_praise" label:"是否被表扬(1:是 2:否)"`
  167. CreatedAt string `json:"created_at"`
  168. UpdatedAt string `json:"updated_at"`
  169. }
  170. const EggFriendCircleCommentEsAlias = "egg_friend_circle_comment"
  171. const EggFriendCircleCommentEsIndex = "egg_friend_circle_comment_"
  172. const EggFriendCircleCommentEsMapping = `
  173. {
  174. "settings" : {
  175. "number_of_shards" : 2,
  176. "number_of_replicas" : 1
  177. },
  178. "aliases": {
  179. "egg_friend_circle_comment": {}
  180. },
  181. "mappings":{
  182. "properties":{
  183. "uid":{
  184. "type": "integer"
  185. },
  186. "circle_id":{
  187. "type": "integer"
  188. },
  189. "comment_id":{
  190. "type": "integer"
  191. },
  192. "content":{
  193. "type": "keyword"
  194. },
  195. "kind":{
  196. "type": "short"
  197. },
  198. "is_praise":{
  199. "type": "short"
  200. },
  201. "state":{
  202. "type": "short"
  203. },
  204. "created_at":{
  205. "type": "date",
  206. "format": "yyyy-MM-dd HH:mm:ss||yyyy-MM-dd||epoch_millis"
  207. },
  208. "updated_at":{
  209. "type": "date",
  210. "format": "yyyy-MM-dd HH:mm:ss||yyyy-MM-dd||epoch_millis"
  211. }
  212. }
  213. }
  214. }`
  215. type EggFriendCircleCommentEs struct {
  216. Uid int64 `json:"uid" label:"uid"`
  217. Kind int32 `json:"kind" label:"类型(1:普通 2:官方)"`
  218. CircleId int64 `json:"circle_id" label:"朋友圈id"`
  219. CommentId int64 `json:"comment_id" label:"评论id"`
  220. Content string `json:"content" label:"文本内容"`
  221. State int32 `json:"state" label:"状态(1:正常 2:隐藏)"`
  222. IsPraise int32 `json:"is_praise" label:"是否被表扬(1:是 2:否)"`
  223. CreatedAt string `json:"created_at"`
  224. UpdatedAt string `json:"updated_at"`
  225. }