From 7dc14a5d08f29fcc813befe37cddfca8e5aecc66 Mon Sep 17 00:00:00 2001 From: shenjiachi Date: Thu, 2 Jan 2025 09:35:15 +0800 Subject: [PATCH] fix: update create es struct --- rule/egg_energy/create_es_score_and_assign_value.go | 4 +--- rule/egg_energy/enum/es_egg_energy_score_enum.go | 2 -- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/rule/egg_energy/create_es_score_and_assign_value.go b/rule/egg_energy/create_es_score_and_assign_value.go index 080cfb6..513435c 100644 --- a/rule/egg_energy/create_es_score_and_assign_value.go +++ b/rule/egg_energy/create_es_score_and_assign_value.go @@ -21,10 +21,8 @@ func CreateEsScoreAndAssignValuesDoc(index, id string, uid int64, kind enum.EggE m.ScoreValueKind = int32(utils.StrToInt64(value)) case enum.Ecpm: m.Ecpm = utils.StrToFloat64(value) - case enum.EcpmAvg: m.EcpmAvg = utils.StrToFloat64(value) - case enum.EcpmNums: - m.EcpmNums = utils.StrToInt(value) + m.EcpmNums = 1 case enum.InviteUserNums: m.InviteUserNums = utils.StrToInt(value) case enum.TeamActivityNums: diff --git a/rule/egg_energy/enum/es_egg_energy_score_enum.go b/rule/egg_energy/enum/es_egg_energy_score_enum.go index 38a250d..939b9b6 100644 --- a/rule/egg_energy/enum/es_egg_energy_score_enum.go +++ b/rule/egg_energy/enum/es_egg_energy_score_enum.go @@ -7,8 +7,6 @@ const ( ScoreValue = iota + 1 ScoreValueKind Ecpm - EcpmAvg - EcpmNums InviteUserNums TeamActivityNums SignInNums