Ver a proveniência

update

master
dengbiao há 6 dias
ascendente
cometimento
8435022870
3 ficheiros alterados com 105 adições e 1 eliminações
  1. +3
    -1
      go.mod
  2. +3
    -0
      go.sum
  3. +99
    -0
      md/es.go

+ 3
- 1
go.mod Ver ficheiro

@@ -11,11 +11,13 @@ require (
github.com/gomodule/redigo v2.0.0+incompatible
github.com/shopspring/decimal v1.3.1
github.com/syyongx/php2go v0.9.8
go.uber.org/zap v1.13.0
go.uber.org/zap v1.16.0
gopkg.in/natefinch/lumberjack.v2 v2.2.1
xorm.io/xorm v1.3.1
)

require code.fnuoos.com/go_rely_warehouse/zyos_go_es.git v1.0.1-0.20230707081910-52e70aa52998 // indirect

require (
code.fnuoos.com/EggPlanet/egg_models.git v0.0.2
github.com/goccy/go-json v0.10.2 // indirect


+ 3
- 0
go.sum Ver ficheiro

@@ -1,6 +1,8 @@
cloud.google.com/go v0.26.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw=
cloud.google.com/go v0.34.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw=
code.fnuoos.com/EggPlanet/egg_models.git v0.0.2/go.mod h1:k31pGms+r3WXkQm11QobqWKisfcSJ0W2JtW7edGOPbo=
code.fnuoos.com/go_rely_warehouse/zyos_go_es.git v1.0.1-0.20230707081910-52e70aa52998 h1:RIxzcyBQa96G/eCpXfEGUTOg6bbKLMIGDD1lCA+JqDs=
code.fnuoos.com/go_rely_warehouse/zyos_go_es.git v1.0.1-0.20230707081910-52e70aa52998/go.mod h1:Yuc7XnUQ15eaC0ZobcJG7XwkVTttVqp52OTanXhI1Qk=
code.fnuoos.com/go_rely_warehouse/zyos_go_mq.git v0.0.5 h1:dqvWJqlJi0WXCwTxbWPLvSOsKPjP+iEDBVgLcAl9nOE=
code.fnuoos.com/go_rely_warehouse/zyos_go_mq.git v0.0.5/go.mod h1:TTcCnFn/LhBGapnutpezlW+GXkLRNPMWkziOoCsXQqY=
filippo.io/edwards25519 v1.1.0 h1:FNf4tywRC1HmFuKW5xopWpigGjJKiJSV0Cqo0cJWDaA=
@@ -380,6 +382,7 @@ go.uber.org/zap v1.9.1/go.mod h1:vwi/ZaCAaUcBkycHslxD9B2zi4UTXhF60s6SWpuDF0Q=
go.uber.org/zap v1.10.0/go.mod h1:vwi/ZaCAaUcBkycHslxD9B2zi4UTXhF60s6SWpuDF0Q=
go.uber.org/zap v1.13.0 h1:nR6NoDBgAf67s68NhaXbsojM+2gxp3S1hWkHDl27pVU=
go.uber.org/zap v1.13.0/go.mod h1:zwrFLgMcdUuIBviXEYEH1YKNaOBnKXsx2IPda5bBwHM=
go.uber.org/zap v1.16.0/go.mod h1:MA8QOfq0BHJwdXa996Y4dYkAqRKB8/1K1QMMZVaNZjQ=
golang.org/x/crypto v0.0.0-20180904163835-0709b304e793/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4=
golang.org/x/crypto v0.0.0-20181029021203-45a5f77698d3/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4=
golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w=


+ 99
- 0
md/es.go Ver ficheiro

@@ -0,0 +1,99 @@
package md

const EggEnergyUserEggScoreEsAlias = "egg_energy_user_egg_score"

const EggEnergyUserEggScoreEsMapping = `
{
"settings" : {
"number_of_shards" : 2,
"number_of_replicas" : 1
},
"aliases": {
"egg_energy_user_egg_score": {}
},
"mappings":{
"properties":{
"uid":{
"type": "integer"
},
"score_value":{
"type": "float"
},
"score_value_kind":{
"type": "short"
},
"ecpm":{
"type": "float"
},
"invite_user_nums":{
"type": "integer"
},
"team_activity_nums":{
"type": "integer"
},
"sign_in_nums":{
"type": "short"
},
"im_activity_nums":{
"type": "short"
},
"send_red_package_nums":{
"type": "short"
},
"egg_energy_exchange_account_balance":{
"type": "integer"
},
"account_balance_exchange_egg_energy_nums":{
"type": "integer"
},
"send_circle_of_friend_nums":{
"type": "short"
},
"forum_comments_nums":{
"type": "integer"
},
"college_learning_nums":{
"type": "short"
},
"violate_nums":{
"type": "short"
},
"browse_interface_nums":{
"type": "integer"
},
"person_add_activity_value":{
"type": "integer"
},
"created_at":{
"type": "date",
"format": "yyyy-MM-dd HH:mm:ss||yyyy-MM-dd||epoch_millis"
},
"updated_at":{
"type": "date",
"format": "yyyy-MM-dd HH:mm:ss||yyyy-MM-dd||epoch_millis"
}
}
}
}`

type EggEnergyUserEggScoreEs struct {
Uid int64 `json:"uid" label:"uid"`
ScoreValue float64 `json:"score_value" label:"蛋蛋分值"`
ScoreValueKind int32 `json:"score_value_kind" label:"评分类型(0:未知 1:人工 2:系统)"`
Ecpm float64 `json:"ecpm" label:"ecpm"`
InviteUserNums int `json:"invite_user_nums" label:"拉新人数"`
TeamActivityNums int `json:"team_activity_nums" label:"团队活跃次数"`
SignInNums int `json:"sign_in_nums" label:"签到次数"`
ImActivityNums int `json:"im_activity_nums" label:"im活跃次数"`
SendRedPackageNums int `json:"send_red_package_nums" label:"发红包次数"`
EggEnergyExchangeAccountBalance int `json:"egg_energy_exchange_account_balance" label:"蛋蛋能量兑换余额数量"`
AccountBalanceExchangeEggEnergyNums int `json:"account_balance_exchange_egg_energy_nums" label:"余额兑换蛋蛋能量数量"`
SendCircleOfFriendNums int `json:"send_circle_of_friend_nums" label:"发朋友圈次数"`
ForumCommentsNums int `json:"forum_comments_nums" label:"论坛评论次数"`
CollegeLearningNums int `json:"college_learning_nums" label:"学院学习次数"`
ViolateNums int `json:"violate_nums" label:"违规次数"`
BrowseInterfaceNums int `json:"browse_interface_nums" label:"浏览界面次数"`
PersonAddActivityValue int `json:"person_add_activity_value" label:"个人活跃积分"`
CreatedAt string `json:"created_at"`
UpdatedAt string `json:"updated_at"`
}

Carregando…
Cancelar
Guardar