From 90d7da4ecb2bfa2f9ef827049d57da70afe2fd7e Mon Sep 17 00:00:00 2001
From: liuxiaolong <736321739@qq.com>
Date: 星期五, 28 六月 2019 20:05:39 +0800
Subject: [PATCH] test
---
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