From c38c4bda17e3774ec0fd58f90ba5e59e1f0639a2 Mon Sep 17 00:00:00 2001
From: liuxiaolong <736321739@qq.com>
Date: 星期三, 30 十月 2019 16:39:29 +0800
Subject: [PATCH] swagger add ApiKeyAuth

---
 controllers/syssetcont.go |   14 ++++++++++++++
 1 files changed, 14 insertions(+), 0 deletions(-)

diff --git a/controllers/syssetcont.go b/controllers/syssetcont.go
index 8034844..4045ebf 100644
--- a/controllers/syssetcont.go
+++ b/controllers/syssetcont.go
@@ -51,6 +51,7 @@
 	NewTime   string `json:"newTime" example:"鎵嬪姩鎸囧畾鏃堕棿"`
 }
 
+// @Security ApiKeyAuth
 // @Summary 瀛樺偍淇℃伅鏌ヨ
 // @Description 瀛樺偍淇℃伅鏌ヨ
 // @Accept  json
@@ -69,6 +70,7 @@
 	}
 }
 
+// @Security ApiKeyAuth
 // @Summary 瀛樺偍淇℃伅淇敼
 // @Description 瀛樺偍淇℃伅淇敼
 // @Accept  json
@@ -95,6 +97,7 @@
 	}
 }
 
+// @Security ApiKeyAuth
 // @Summary 瀛樺偍淇℃伅淇敼
 // @Description 瀛樺偍淇℃伅淇敼
 // @Accept  json
@@ -117,6 +120,7 @@
 	}
 }
 
+// @Security ApiKeyAuth
 // @Summary 瑙嗛鎴彇鏃堕暱淇敼
 // @Description 瑙嗛鎴彇鏃堕暱淇℃伅
 // @Accept  x-www-form-urlencoded
@@ -142,6 +146,7 @@
 	}
 }
 
+// @Security ApiKeyAuth
 // @Summary 鑾峰彇鍒嗘瀽璁惧淇℃伅
 // @Description  鍒嗘瀽璁惧淇℃伅
 // @Accept  json
@@ -179,6 +184,7 @@
 	}
 }
 
+// @Security ApiKeyAuth
 // saveDevInfo  dev_id dev_name
 // @Summary 淇濆瓨瑙嗛鍒嗘瀽璁惧淇℃伅
 // @Description 鍒嗘瀽璁惧淇℃伅
@@ -211,6 +217,7 @@
 	}
 }
 
+// @Security ApiKeyAuth
 // @Summary GB28181璁剧疆鏌ヨ
 // @Description GB28181璁剧疆淇℃伅鏌ヨ
 // @Accept  json
@@ -229,6 +236,7 @@
 	}
 }
 
+// @Security ApiKeyAuth
 // @Summary GB28181璁剧疆淇℃伅淇敼
 // @Description GB28181璁剧疆淇敼
 // @Accept  json
@@ -255,6 +263,7 @@
 	}
 }
 
+// @Security ApiKeyAuth
 // @Summary 鑾峰彇鏃堕棿閰嶇疆
 // @Description  绯荤粺鏃堕棿閰嶇疆淇℃伅
 // @Accept  json
@@ -271,6 +280,7 @@
 	util.ResponseFormat(c, code.Success, resData)
 }
 
+// @Security ApiKeyAuth
 // @Summary 娴嬭瘯鍚屾鏃堕棿
 // @Description 娴嬭瘯鍚屾鏃堕棿鏈嶅姟鍣ㄦ槸鍚﹀彲鐢�
 // @Accept  json
@@ -301,6 +311,7 @@
 	}
 }
 
+// @Security ApiKeyAuth
 // @Summary 璁剧疆绯荤粺鏃堕棿
 // @Description 鏍℃绯荤粺鏃堕棿
 // @Accept  json
@@ -340,6 +351,7 @@
 	util.ResponseFormat(c, code.UpdateSuccess, "閰嶇疆鎴愬姛")
 }
 
+// @Security ApiKeyAuth
 // @Summary 鏌ヨ绯荤粺杩愯淇℃伅
 // @Description 鑾峰彇褰撳墠绯荤粺鐨勮繍琛岀姸鎬侊紝CPU, GPU, 鍐呭瓨绛�
 // @Produce json
@@ -352,6 +364,7 @@
 	util.ResponseFormat(c, code.UpdateSuccess, info)
 }
 
+// @Security ApiKeyAuth
 // @Summary 鏌ヨ绯荤粺鐘舵�侀槇鍊艰缃�
 // @Description 鑾峰彇褰撳墠绯荤粺鐨勮繍琛岀姸鎬侊紝CPU, GPU, 鍐呭瓨鐨勯槇鍊奸厤缃�
 // @Produce json
@@ -363,6 +376,7 @@
 	util.ResponseFormat(c, code.UpdateSuccess, config.Server.SysThresholds)
 }
 
+// @Security ApiKeyAuth
 // @Summary 閲嶅惎绯荤粺
 // @Description 閲嶅惎鎿嶄綔绯荤粺
 // @Produce json

--
Gitblit v1.8.0