From bc86eeeefb27f73c28c44cd63624ef3c8ac2448c Mon Sep 17 00:00:00 2001
From: liuxiaolong <736321739@qq.com>
Date: 星期六, 29 六月 2019 10:57:33 +0800
Subject: [PATCH] init map

---
 controllers/dbtablesCon.go |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/controllers/dbtablesCon.go b/controllers/dbtablesCon.go
index f6bf747..ee094e3 100644
--- a/controllers/dbtablesCon.go
+++ b/controllers/dbtablesCon.go
@@ -68,8 +68,8 @@
 	c.BindJSON(&dbtable)
 	uuid := c.Params.ByName("uuid")
 	if uuid == "" {
-		uuid = dbtable.Uuid
-		fmt.Println("body涓幏鍙栧簳搴搖uid")
+		uuid = dbtable.Id
+		fmt.Println("body涓幏鍙栧簳搴搃d")
 	}
 	url := "http://" + config.EsInfo.Masterip + ":" + config.EsInfo.Httpport +
 		"/" + config.EsInfo.EsIndex.DbTables.IndexName + "/" + config.EsInfo.EsIndex.DbTables.IndexType + "/" + uuid + "/_update"
@@ -106,7 +106,7 @@
 	dbtable := new(models.Dbtables)
 	c.BindJSON(&dbtable)
 	tableId := uuid.NewV4().String()
-	dbtable.Uuid = tableId
+	dbtable.Id = tableId
 	url := "http://" + config.EsInfo.Masterip + ":" + config.EsInfo.Httpport +
 		"/" + config.EsInfo.EsIndex.DbTables.IndexName + "/" + config.EsInfo.EsIndex.DbTables.IndexType + "/" + tableId
 	dbtable.PriInsert() // 娣诲姞鏃堕棿鍜屽垱寤轰汉

--
Gitblit v1.8.0