From 8a1ad0682d026defd3fe3dcf5eb5dbd982c70db4 Mon Sep 17 00:00:00 2001 From: liuxiaolong <736321739@qq.com> Date: 星期五, 05 七月 2019 11:00:18 +0800 Subject: [PATCH] fix dbtable arg --- controllers/dbtablesCon.go | 2 +- router/router.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/controllers/dbtablesCon.go b/controllers/dbtablesCon.go index 2eb472c..8a7adc6 100644 --- a/controllers/dbtablesCon.go +++ b/controllers/dbtablesCon.go @@ -137,7 +137,7 @@ // @Param uuid path string true "搴曞簱id " // @Success 200 {string} json "{"code":200, msg:"鐩綍缁撴瀯鏁版嵁", success:true}" // @Failure 500 {string} json "{"code":500, msg:"杩斿洖閿欒淇℃伅", success:false}" -// @Router /data/api-v/dbtable/deleteDBtablesById/{uuid} [POST] +// @Router /data/api-v/dbtable/deleteDBtablesById/{id} [POST] func (dbt DbTableController) DeleteDbTables(c *gin.Context) { uuid := c.Params.ByName("id") url := "http://" + config.EsInfo.Masterip + ":" + config.EsInfo.Httpport + diff --git a/router/router.go b/router/router.go index b4574e3..b61ca4e 100644 --- a/router/router.go +++ b/router/router.go @@ -141,7 +141,7 @@ { vdbtable.POST("/queryDbTables/:isSync", tableController.QueryDbTables) vdbtable.POST("/updateDbTables", tableController.UpdateDbTables) - vdbtable.POST("/deleteDBtablesById/:uuid", tableController.DeleteDbTables) + vdbtable.POST("/deleteDBtablesById/:id", tableController.DeleteDbTables) vdbtable.PUT("/addDbTableInfo", tableController.AddDbTableInfo) } -- Gitblit v1.8.0