From 0b963568e9086f839f281a5bf9412f29314acee0 Mon Sep 17 00:00:00 2001
From: 554325746@qq.com <554325746@qq.com>
Date: 星期一, 17 二月 2020 13:52:22 +0800
Subject: [PATCH] add updateCameraArea
---
client.go | 7 ++++++-
1 files changed, 6 insertions(+), 1 deletions(-)
diff --git a/client.go b/client.go
index 20bb145..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)
@@ -13,6 +15,9 @@
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"
CONTENT_TYPE_FORM = "application/x-www-form-urlencoded"
@@ -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