From f9ecff08394b734fb8420044bcba471df1af352c Mon Sep 17 00:00:00 2001
From: 554325746@qq.com <554325746@qq.com>
Date: 星期二, 25 六月 2019 14:24:07 +0800
Subject: [PATCH] add protobuf struct for baseinfo

---
 esutil/EsClient.go |    8 +++++---
 1 files changed, 5 insertions(+), 3 deletions(-)

diff --git a/esutil/EsClient.go b/esutil/EsClient.go
index d022703..fa2de87 100644
--- a/esutil/EsClient.go
+++ b/esutil/EsClient.go
@@ -8,6 +8,8 @@
 	"net/http"
 	"time"
     "bytes"
+
+    "basic.com/pubsub/protomsg.git"
 )
 
 
@@ -17,9 +19,9 @@
 }
 
 
-func Parsesources(sources []map[string]interface{}) []Baseinfo {
-    var tmpinfo Baseinfo
-    var baseinfos []Baseinfo
+func Parsesources(sources []map[string]interface{}) []protomsg.Baseinfo {
+    var tmpinfo protomsg.Baseinfo
+    var baseinfos []protomsg.Baseinfo
     var ok bool
     for _, source := range sources {
 

--
Gitblit v1.8.0