From d255e7caf21f3da6aad39eab0151f71699d8374a Mon Sep 17 00:00:00 2001 From: liuxiaolong <liuxiaolong@aiotlink.com> Date: 星期日, 28 六月 2020 18:48:53 +0800 Subject: [PATCH] add log --- controllers/cameraRule.go | 9 +++++++++ 1 files changed, 9 insertions(+), 0 deletions(-) diff --git a/controllers/cameraRule.go b/controllers/cameraRule.go index 4ec7066..3cf4981 100644 --- a/controllers/cameraRule.go +++ b/controllers/cameraRule.go @@ -2,6 +2,7 @@ import ( "basic.com/dbapi.git" + "basic.com/valib/logger.git" "github.com/gin-gonic/gin" "webserver/extend/code" "webserver/extend/util" @@ -17,6 +18,7 @@ TargetIds []string `json:"targetIds" binging:"required"` } +// @Security ApiKeyAuth // @Summary 鏄剧ず鎽勫儚鏈哄満鏅鍒� // @Description 鏄剧ず鎽勫儚鏈哄満鏅鍒� // @Accept json @@ -34,6 +36,7 @@ } var api dbapi.CameraRuleApi b,d := api.FindByCameraId(cameraId) + logger.Debug("b:", b, d) if b { util.ResponseFormat(c,code.Success,d) } else { @@ -41,6 +44,7 @@ } } +// @Security ApiKeyAuth // @Summary 淇濆瓨鎽勫儚鏈虹嫭绔嬭鍒� // @Description 淇濆瓨鎽勫儚鏈虹嫭绔嬭鍒� // @Accept json @@ -66,6 +70,7 @@ } } +// @Security ApiKeyAuth // @Summary 澶嶅埗鎽勫儚鏈鸿鍒欏埌閫夊畾鐨勫涓憚鍍忔満 // @Description 澶嶅埗鎽勫儚鏈鸿鍒欏埌閫夊畾鐨勫涓憚鍍忔満 // @Accept json @@ -91,6 +96,7 @@ } } +// @Security ApiKeyAuth // @Summary 淇濆瓨鑱斿姩浠诲姟瑙勫垯鍙傛暟 // @Description 淇濆瓨鑱斿姩浠诲姟瑙勫垯鍙傛暟 // @Accept json @@ -115,6 +121,7 @@ } } +// @Security ApiKeyAuth // @Summary 鏍规嵁澶氫釜鎽勫儚鏈篿d鏌ヨ鑱斿姩浠诲姟瑙勫垯璁剧疆 // @Description 鏍规嵁澶氫釜鎽勫儚鏈篿d鏌ヨ鑱斿姩浠诲姟瑙勫垯璁剧疆 // @Accept json @@ -145,6 +152,7 @@ } +// @Security ApiKeyAuth // @Summary 淇敼瑙勫垯缁勬姤璀︾瓑绾� // @Description 淇敼瑙勫垯缁勬姤璀︾瓑绾� // @Produce json @@ -169,6 +177,7 @@ } } +// @Security ApiKeyAuth // @Summary 鏍规嵁鍒嗙粍id鍒犻櫎鎽勫儚鏈虹畻娉曡鍒� // @Description 鏍规嵁鍒嗙粍id鍒犻櫎鎽勫儚鏈虹畻娉曡鍒� // @Produce json -- Gitblit v1.8.0