Ver código fonte

fix: update create es struct

master
shenjiachi 1 semana atrás
pai
commit
7dc14a5d08
2 arquivos alterados com 1 adições e 5 exclusões
  1. +1
    -3
      rule/egg_energy/create_es_score_and_assign_value.go
  2. +0
    -2
      rule/egg_energy/enum/es_egg_energy_score_enum.go

+ 1
- 3
rule/egg_energy/create_es_score_and_assign_value.go Ver arquivo

@@ -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:


+ 0
- 2
rule/egg_energy/enum/es_egg_energy_score_enum.go Ver arquivo

@@ -7,8 +7,6 @@ const (
ScoreValue = iota + 1
ScoreValueKind
Ecpm
EcpmAvg
EcpmNums
InviteUserNums
TeamActivityNums
SignInNums


Carregando…
Cancelar
Salvar