From 7c811247ecf143e08c576986a884bedadc57dd66 Mon Sep 17 00:00:00 2001
From: liuxiaolong <liuxiaolong@aiotlink.com>
Date: 星期五, 05 六月 2020 18:29:41 +0800
Subject: [PATCH] add refresh token to resp

---
 controllers/cameraTimerule.go |    8 +++++---
 1 files changed, 5 insertions(+), 3 deletions(-)

diff --git a/controllers/cameraTimerule.go b/controllers/cameraTimerule.go
index 7450959..3c8fcce 100644
--- a/controllers/cameraTimerule.go
+++ b/controllers/cameraTimerule.go
@@ -29,7 +29,8 @@
 	Start string `json:"start"`//寮�濮�
 	End   string `json:"end"`//缁撴潫
 }
-//
+
+// @Security ApiKeyAuth
 // @Summary 鏃堕棿瑙勫垯淇濆瓨
 // @Description 鏃堕棿瑙勫垯淇濆瓨
 // @Accept json
@@ -51,7 +52,7 @@
 	paramBody["id"] = vo.Id
 	paramBody["name"] = vo.Name
 	paramBody["time_rule"] = vo.TimeRule
-	fmt.Println("paramBody: ", paramBody)
+
 	var api dbapi.CameraApi
 	flag, data := api.SaveCameraTimerule(paramBody)
 	if flag {
@@ -62,9 +63,9 @@
 	util.ResponseFormat(c,code.ComError,"淇濆瓨澶辫触")
 }
 
+// @Security ApiKeyAuth
 // @Summary 鍒犻櫎鏃堕棿瑙勫垯
 // @Description 鍒犻櫎鏃堕棿瑙勫垯
-// @Accept json
 // @Produce json
 // @Tags CameraTimerule
 // @Param  id query string  true "id"
@@ -85,6 +86,7 @@
 	util.ResponseFormat(c, code.ComError, "鍒犻櫎澶辫触")
 }
 
+// @Security ApiKeyAuth
 // @Summary 鏌ユ壘鎵�鏈夋椂闂磋鍒�
 // @Description 鏌ユ壘鎵�鏈夋椂闂磋鍒�
 // @Accept json

--
Gitblit v1.8.0