From b69af23f1344a1a3320b63de508e85fb0cc7f427 Mon Sep 17 00:00:00 2001 From: shenjiachi Date: Fri, 27 Dec 2024 18:31:36 +0800 Subject: [PATCH] fix: return index id when get user egg flow --- app/svc/egg_energy/svc_egg_energy.go | 1 + go.mod | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/app/svc/egg_energy/svc_egg_energy.go b/app/svc/egg_energy/svc_egg_energy.go index d62586c..1fc916e 100644 --- a/app/svc/egg_energy/svc_egg_energy.go +++ b/app/svc/egg_energy/svc_egg_energy.go @@ -91,6 +91,7 @@ func QueryElasticsearch(req md2.UserEggFlowReq, indexName string) (resp []md2.Us if err != nil { return } + doc.IndexId = hit.Index resp = append(resp, doc) } total = searchResult.Hits.TotalHits.Value diff --git a/go.mod b/go.mod index 8ace5cf..134ed62 100644 --- a/go.mod +++ b/go.mod @@ -33,7 +33,7 @@ require ( ) require ( - code.fnuoos.com/EggPlanet/egg_models.git v0.2.1-0.20241227063935-e6bf4d057f14 + code.fnuoos.com/EggPlanet/egg_models.git v0.2.1-0.20241227102847-f4a6450c27aa code.fnuoos.com/EggPlanet/egg_system_rules.git v0.0.4-0.20241227073118-a441564375e2 code.fnuoos.com/go_rely_warehouse/zyos_go_es.git v1.0.1-0.20241118083738-0f22da9ba0be code.fnuoos.com/go_rely_warehouse/zyos_go_mq.git v0.0.5