From 397ff0ed8f549f741afa41d90a9c68c38005e463 Mon Sep 17 00:00:00 2001 From: liuxiaolong <liuxiaolong@aiotlink.com> Date: 星期日, 28 六月 2020 14:42:37 +0800 Subject: [PATCH] dbapi add log --- controllers/cameraRule.go | 5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-) diff --git a/controllers/cameraRule.go b/controllers/cameraRule.go index 60e6bbf..4ec7066 100644 --- a/controllers/cameraRule.go +++ b/controllers/cameraRule.go @@ -22,11 +22,12 @@ // @Accept json // @Produce json // @Tags 鎽勫儚鏈鸿鍒� +// @Param cameraId query string true "鎽勫儚鏈篿d" // @Success 200 {string} json "{"code":200, success:true, msg:"", data:""}" // @Failure 500 {string} json "{"code":500, success:false, msg:"",data:""}" -// @Router /data/api-v/camera/rule/{cameraId} [get] +// @Router /data/api-v/camera/rule/findByCameraId [get] func (crc CameraRuleController) FindByCameraId(c *gin.Context) { - cameraId := c.Param("cameraId") + cameraId := c.Query("cameraId") if cameraId == "" { util.ResponseFormat(c,code.RequestParamError,"") return -- Gitblit v1.8.0