From a47ddaef3711c5a34b24886a7639c96eb4e354df Mon Sep 17 00:00:00 2001
From: liuxiaolong <736321739@qq.com>
Date: 星期四, 12 十二月 2019 12:01:13 +0800
Subject: [PATCH] add FindAllTaskDefaultArgs

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

diff --git a/client.go b/client.go
index 64fc005..98807f2 100644
--- a/client.go
+++ b/client.go
@@ -1,5 +1,7 @@
 package dbapi
 
+import "strconv"
+
 type Client interface {
 	//GET
 	DoGetRequest(url string, params map[string]string, headers map[string]string) ([]byte, error)
@@ -11,7 +13,10 @@
 	DoDeleteRequest(url string, contentType string, body map[string]interface{}, headers map[string]string) ([]byte, error)
 }
 
-var BASIC_URL            = "http://192.168.1.11:8001"
+var BASIC_URL            = "http://127.0.0.1:8001"
+
+var DEFAULT_IP			 = "127.0.0.1"
+var DEFAULT_PORT         = 8001
 
 const (
 	DATA_URL_PREFIX      = "/data/api-v"
@@ -22,5 +27,5 @@
 
 //鍒濆鍖杁bserver鐨勫湴鍧�鍜岀鍙�
 func Init(ip string,port int){
-	BASIC_URL = "http://"+ ip + ":" + string(port)
+	BASIC_URL = "http://"+ ip + ":" + strconv.Itoa(port)
 }
\ No newline at end of file

--
Gitblit v1.8.0