From c4ab4a96dfdd097d0faedd14f10b93b18786101d Mon Sep 17 00:00:00 2001 From: sunty <1172534965@qq.com> Date: 星期二, 02 七月 2019 17:37:54 +0800 Subject: [PATCH] update dbtable and dbtablepersons update taglist add ageDecription taskName alarmLevel conditions into inputvalue --- controllers/dbtablesCon.go | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/controllers/dbtablesCon.go b/controllers/dbtablesCon.go index ee094e3..2eb472c 100644 --- a/controllers/dbtablesCon.go +++ b/controllers/dbtablesCon.go @@ -66,7 +66,7 @@ func (dbt DbTableController) UpdateDbTables(c *gin.Context) { dbtable := new(models.Dbtables) c.BindJSON(&dbtable) - uuid := c.Params.ByName("uuid") + uuid := c.Params.ByName("id") if uuid == "" { uuid = dbtable.Id fmt.Println("body涓幏鍙栧簳搴搃d") @@ -139,7 +139,7 @@ // @Failure 500 {string} json "{"code":500, msg:"杩斿洖閿欒淇℃伅", success:false}" // @Router /data/api-v/dbtable/deleteDBtablesById/{uuid} [POST] func (dbt DbTableController) DeleteDbTables(c *gin.Context) { - uuid := c.Params.ByName("uuid") + uuid := c.Params.ByName("id") url := "http://" + config.EsInfo.Masterip + ":" + config.EsInfo.Httpport + "/" + config.EsInfo.EsIndex.DbTables.IndexName + "/" + config.EsInfo.EsIndex.DbTables.IndexType + "/" + uuid + "/_update" params := "{\"doc\":{\"isDelete\":\"1\"}}" -- Gitblit v1.8.0