From 789d38603d73dabe8ae5f79c1a35a8d84c130b00 Mon Sep 17 00:00:00 2001
From: liuxiaolong <736321739@qq.com>
Date: 星期三, 04 三月 2020 18:20:47 +0800
Subject: [PATCH] update protomsg
---
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