蛋蛋星球-制度模式
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.

es.go 3.2 KiB

1 month ago
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
  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. }