From 4497238bd859b8351b4eeb7ba6d00ef9264575c4 Mon Sep 17 00:00:00 2001
From: liuxiaolong <736321739@qq.com>
Date: 星期四, 12 三月 2020 12:10:24 +0800
Subject: [PATCH] fix interface to []byte

---
 client.go |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/client.go b/client.go
index 26b15dd..d9a211b 100644
--- a/client.go
+++ b/client.go
@@ -48,7 +48,7 @@
 
 type ServiceInfo struct {
 	ServiceId string `json:"serviceId"`
-	Info interface{} `json:"info"`
+	Info []byte `json:"info"`
 }
 
 func Client(urlServer string, serviceId string) (*DiscoveryClient, error) {
@@ -115,7 +115,7 @@
 	d.cancel()
 }
 
-func (d *DiscoveryClient) SetResp(i interface{}) {
+func (d *DiscoveryClient) SetResp(i []byte) {
 	d.service.Info = i
 }
 

--
Gitblit v1.8.0