From fc1cf8bec6f52311b4428aec3e1fdeb0fd7aad02 Mon Sep 17 00:00:00 2001
From: liuxiaolong <736321739@qq.com>
Date: 星期六, 22 六月 2019 10:45:14 +0800
Subject: [PATCH] add syssetApi.go
---
client.go | 10 +++++++++-
1 files changed, 9 insertions(+), 1 deletions(-)
diff --git a/client.go b/client.go
index fc23c07..a644a6e 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,10 +13,16 @@
DoDeleteRequest(url string, contentType string, body map[string]interface{}, headers map[string]string) ([]byte, error)
}
+var BASIC_URL = "http://192.168.1.11:8001"
+
const (
- BASIC_URL = "http://192.168.1.115:8000"
DATA_URL_PREFIX = "/data/api-v"
CONTENT_TYPE_FORM = "application/x-www-form-urlencoded"
CONTENT_TYPE_MULFORM = "multipart/form-data"
CONTENT_TYPE_JSON = "application/json"
)
+
+//鍒濆鍖杁bserver鐨勫湴鍧�鍜岀鍙�
+func Init(ip string,port int){
+ BASIC_URL = "http://"+ ip + ":" + strconv.Itoa(port)
+}
\ No newline at end of file
--
Gitblit v1.8.0