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/cameraTimerule.go |    5 +
 controllers/es.go             |    1 
 controllers/cameraTaskArgs.go |    6 +
 controllers/dbtableperson.go  |    8 ++
 controllers/task.go           |   13 +++
 controllers/cameraPolygon.go  |    4 +
 controllers/syssetcont.go     |   14 ++++
 controllers/camera.go         |   11 +++
 controllers/monitoring.go     |    1 
 controllers/pollConfig.go     |    4 +
 controllers/tasklist.go       |    2 
 controllers/taglist.go        |    1 
 controllers/cluster.go        |   10 +++
 controllers/sysRole.go        |    1 
 controllers/user.go           |    4 +
 controllers/capture.go        |    1 
 controllers/cameraTask.go     |    9 ++
 controllers/area.go           |    7 ++
 controllers/esSearch.go       |    1 
 controllers/dictionary.go     |    2 
 controllers/sdk.go            |    4 +
 controllers/dbtablesCon.go    |    6 ++
 controllers/fileController.go |    5 +
 controllers/eventPush.go      |    6 ++
 controllers/initForData.go    |    2 
 controllers/sysMenu.go        |    2 
 26 files changed, 122 insertions(+), 8 deletions(-)

diff --git a/controllers/area.go b/controllers/area.go
index 626bec6..705c05c 100644
--- a/controllers/area.go
+++ b/controllers/area.go
@@ -19,6 +19,7 @@
 
 // @Summary 鏄剧ず鏍戝舰缁撴瀯
 // @Description 鏄剧ず宸︿晶鎵�鏈夊尯鍩熷拰鎽勫儚鏈�
+// @Security ApiKeyAuth
 // @Produce json
 // @Tags menu
 // @Param parentid query string true "鍖哄煙鐨刬d"
@@ -39,6 +40,7 @@
 
 // @Summary 鏄剧ずGb28181鏍戝舰缁撴瀯
 // @Description 鏄剧ずGb28181鏍戝舰缁撴瀯
+// @Security ApiKeyAuth
 // @Produce json
 // @Tags menu
 // @Param parentid query string true "鍖哄煙鐨刬d"
@@ -59,6 +61,7 @@
 
 // @Summary 鍒锋柊Gb28181骞冲彴鏍�
 // @Description 鍒锋柊Gb28181骞冲彴鏍�
+// @Security ApiKeyAuth
 // @Produce json
 // @Tags menu
 // @Param id formData string false "鍥芥爣骞冲彴id"
@@ -76,6 +79,7 @@
 	}
 }
 
+// @Security ApiKeyAuth
 // @Summary 鍒犻櫎Gb28181骞冲彴
 // @Description 鍒犻櫎Gb28181骞冲彴
 // @Produce json
@@ -92,6 +96,7 @@
 	}
 }
 
+// @Security ApiKeyAuth
 // @Summary 娣诲姞menu鐨勫尯鍩�
 // @Description 娣诲姞鐩綍涓婂尯鍩�
 // @Produce json
@@ -119,6 +124,7 @@
 	}
 }
 
+// @Security ApiKeyAuth
 // @Summary 淇敼鍚嶅瓧
 // @Description 淇敼鍖哄煙鍚嶅瓧
 // @Accept  json
@@ -159,6 +165,7 @@
 	}
 }
 
+// @Security ApiKeyAuth
 // @Summary 鍒犻櫎涓�涓尯鍩�
 // @Description 鐐瑰嚮鍒犻櫎鎸夐挳鏃跺垹闄や竴涓尯鍩�
 // @Produce json
diff --git a/controllers/camera.go b/controllers/camera.go
index f4fda56..e7105b2 100644
--- a/controllers/camera.go
+++ b/controllers/camera.go
@@ -42,6 +42,7 @@
 
 // @Summary 娣诲姞鎽勫儚鏈�
 // @Description  "浼犲叆鍖哄煙鐨刬d锛坅reaid锛夊拰鎽勫儚鏈哄悕瀛�(name) 蹇呴』锛� 鍏朵粬鍙傛暟鍙互鍦ㄦ憚鍍忔満閰嶇疆鐐瑰嚮淇濆瓨杩涜娣诲姞"
+// @Security ApiKeyAuth
 // @Accept json
 // @Produce json
 // @Tags camera
@@ -70,6 +71,7 @@
 
 // @Summary 鏇存柊鎽勫儚鏈�
 // @Description "鐢ㄤ簬鏇存柊鎽勫儚鏈烘搷浣�"
+// @Security ApiKeyAuth
 // @Accept json
 // @Produce json
 // @Tags camera
@@ -97,6 +99,7 @@
 
 // @Summary "鍒犻櫎鎽勫儚鏈�"
 // @Description "鏍规嵁鎽勫儚鏈篿d鍒犻櫎鎽勫儚鏈�"
+// @Security ApiKeyAuth
 // @Produce json
 // @Tags camera
 // @Param cid path string true "鎽勫儚鏈篿d example: cid0"
@@ -116,6 +119,7 @@
 
 // @Summary 鏄剧ず鎽勫儚鏈�
 // @Description "鏄剧ず鎽勫儚鏈�"
+// @Security ApiKeyAuth
 // @Produce json
 // @Tags camera
 // @Param cid path string true "鎽勫儚鏈篿d"
@@ -168,6 +172,7 @@
 
 // @Summary 灏嗘憚鍍忔満鎸傚埌鎸囧畾鐨勭洰褰曟爲涓�
 // @Description 灏嗘憚鍍忔満鎸傚埌鎸囧畾鐨勭洰褰曟爲涓�
+// @Security ApiKeyAuth
 // @Produce json
 // @Tags camera
 // @Param cameraId path string true "鎽勫儚鏈篿d"
@@ -184,6 +189,7 @@
 
 // @Summary 鍒犻櫎鏌愪竴涓洰褰曟爲涓嬬殑鎸囧畾鎽勫儚鏈�
 // @Description 鍒犻櫎鏌愪竴涓洰褰曟爲涓嬬殑鎸囧畾鎽勫儚鏈�
+// @Security ApiKeyAuth
 // @Produce json
 // @Tags camera
 // @Param cameraId path string true "鎽勫儚鏈篿d"
@@ -226,6 +232,7 @@
 
 // @Summary 鑾峰彇杩愯绫诲瀷鑾峰彇鎽勫儚鏈哄垪琛�
 // @Description 鑾峰彇杩愯绫诲瀷鑾峰彇鎽勫儚鏈哄垪琛�
+// @Security ApiKeyAuth
 // @Produce json
 // @Tags camera
 // @Param runType query int true "0锛氭煡杞锛�1锛氭煡瀹炴椂"
@@ -258,6 +265,7 @@
 
 // @Summary 鍒囨崲鎽勫儚鏈鸿繍琛屽疄鏃舵垨杞鐨勫紑鍏�
 // @Description 鍒囨崲鎽勫儚鏈鸿繍琛屽疄鏃舵垨杞鐨勫紑鍏�
+// @Security ApiKeyAuth
 // @Produce json
 // @Tags camera
 // @Param cameraId formData string true "鎽勫儚鏈篿d"
@@ -286,6 +294,7 @@
 
 // @Summary  鏇存柊搴曞浘
 // @Description 鍒锋柊搴曞浘
+// @Security ApiKeyAuth
 // @Produce json
 // @Tags camera
 // @Param cid path string true "鎽勫儚鏈篿d"
@@ -311,6 +320,7 @@
 
 // @Summary 鎽勫儚鏈鸿疆璇㈠拰瀹炴椂鐘舵�佸垏鎹�
 // @Description 鎽勫儚鏈鸿疆璇㈠拰瀹炴椂鐘舵�佸垏鎹�
+// @Security ApiKeyAuth
 // @Produce json
 // @Tags camera
 // @Param changeRunBody body controllers.CameraChangeRunVo true "鍙傛暟缁撴瀯浣�,0锛氬疄鏃跺垏杞锛�1锛氳疆璇㈠垏瀹炴椂"
@@ -335,6 +345,7 @@
 
 // @Summary 缁熻瀹炴椂鍜岃疆璇㈢殑杩愯璺暟鎯呭喌
 // @Description 缁熻瀹炴椂鍜岃疆璇㈢殑杩愯璺暟鎯呭喌
+// @Security ApiKeyAuth
 // @Produce json
 // @Tags camera
 // @Success 200 {string} json "{"code":200, success:true, msg:"", data:""}"
diff --git a/controllers/cameraPolygon.go b/controllers/cameraPolygon.go
index 4408523..e71a471 100644
--- a/controllers/cameraPolygon.go
+++ b/controllers/cameraPolygon.go
@@ -33,6 +33,7 @@
 	Y float64 `json:"y"`
 }
 
+// @Security ApiKeyAuth
 // @Summary 淇濆瓨鎽勫儚鏈哄杈瑰舰
 // @Description  淇濆瓨鎽勫儚鏈哄杈瑰舰
 // @Accept json
@@ -54,7 +55,7 @@
 	util.ResponseFormat(c,code.ComError,"淇濆瓨澶辫触")
 }
 
-
+// @Security ApiKeyAuth
 // @Summary 鍒犻櫎鎽勫儚鏈哄尯鍩�
 // @Description 鍒犻櫎鎽勫儚鏈哄尯鍩�
 // @Accept json
@@ -80,6 +81,7 @@
 	util.ResponseFormat(c,code.ComError,"鍒犻櫎")
 }
 
+// @Security ApiKeyAuth
 // @Summary 鏌ユ壘鎽勫儚鏈哄尯鍩�
 // @Description 鏌ユ壘鎽勫儚鏈哄尯鍩�
 // @Accept json
diff --git a/controllers/cameraTask.go b/controllers/cameraTask.go
index 7a686c5..9d49181 100644
--- a/controllers/cameraTask.go
+++ b/controllers/cameraTask.go
@@ -74,6 +74,7 @@
 	Polygon CameraPolygonVo `json:"polygon"`
 }
 
+// @Security ApiKeyAuth
 // @Summary 鏌ヨ鎵�鏈変换鍔�
 // @Description "鏌ヨ鎵�鏈変换鍔�"
 // @Accept json
@@ -95,6 +96,7 @@
 	}
 }
 
+// @Security ApiKeyAuth
 // @Summary 鎽勫儚鏈烘坊鍔犱竴涓换鍔�
 // @Description 鎽勫儚鏈烘坊鍔犱竴涓换鍔�
 // @Produce json
@@ -123,6 +125,7 @@
 	}
 }
 
+// @Security ApiKeyAuth
 // @Summary 鏌ヨ鎵�鏈変换鍔�
 // @Description "鏌ヨ鎵�鏈変换鍔�"
 // @Produce json
@@ -146,7 +149,7 @@
 	}
 }
 
-
+// @Security ApiKeyAuth
 // @Summary 鎽勫儚鏈轰繚瀛樹换鍔�
 // @Description 鎽勫儚鏈轰繚瀛樹换鍔�
 // @Accept json
@@ -175,6 +178,7 @@
 	}
 }
 
+// @Security ApiKeyAuth
 // @Summary 鍒犻櫎鎽勫儚鏈虹殑浠诲姟
 // @Description 鍒犻櫎鎽勫儚鏈虹殑浠诲姟
 // @Produce json
@@ -211,6 +215,7 @@
 	AlarmLevel int `json:"alarm_level"`
 }
 
+// @Security ApiKeyAuth
 // @Summary 淇濆瓨浠诲姟鏄惁涓嬩紶鏁版嵁
 // @Description 淇濆瓨浠诲姟鏄惁涓嬩紶鏁版嵁
 // @Accept json
@@ -237,6 +242,7 @@
 	}
 }
 
+// @Security ApiKeyAuth
 // @Summary 淇濆瓨瑙勫垯缁勬姤璀︾瓑绾�
 // @Description 淇濆瓨瑙勫垯缁勬姤璀︾瓑绾�
 // @Produce json
@@ -267,6 +273,7 @@
 	Status int `json:"status"`
 }
 
+// @Security ApiKeyAuth
 // @Summary 鏇存柊浠诲姟鐘舵��
 // @Description 鏇存柊浠诲姟鐘舵��
 // @Produce json
diff --git a/controllers/cameraTaskArgs.go b/controllers/cameraTaskArgs.go
index e402cb4..f7549ea 100644
--- a/controllers/cameraTaskArgs.go
+++ b/controllers/cameraTaskArgs.go
@@ -13,7 +13,7 @@
 
 }
 
-
+// @Security ApiKeyAuth
 // @Summary 鏍规嵁鎽勫儚鏈篿d鍜屼换鍔d鏌ヨ绠楁硶閰嶇疆璇︽儏
 // @Description 鏍规嵁鎽勫儚鏈篿d鍜屼换鍔d鏌ヨ绠楁硶閰嶇疆璇︽儏
 // @Produce json
@@ -42,6 +42,7 @@
 	}
 }
 
+// @Security ApiKeyAuth
 // @Summary 鏍规嵁澶氫釜鎽勫儚鏈篿d鏌ヨ鑱斿姩浠诲姟瑙勫垯璁剧疆
 // @Description 鏍规嵁澶氫釜鎽勫儚鏈篿d鏌ヨ鑱斿姩浠诲姟瑙勫垯璁剧疆
 // @Accept json
@@ -67,6 +68,7 @@
 	}
 }
 
+// @Security ApiKeyAuth
 // @Summary 鏍规嵁鍒嗙粍id鍒囨崲甯冮槻鎴栨挙闃�
 // @Description 鏍规嵁鍒嗙粍id鍒囨崲甯冮槻鎴栨挙闃�
 // @Produce json
@@ -93,6 +95,7 @@
 	}
 }
 
+// @Security ApiKeyAuth
 // @SUmmary 鏍规嵁鍒嗙粍id鍒犻櫎鎽勫儚鏈虹畻娉曡鍒�
 // @Description 鏍规嵁鍒嗙粍id鍒犻櫎鎽勫儚鏈虹畻娉曡鍒�
 // @Produce json
@@ -144,6 +147,7 @@
 	GroupId string `json:"group_id"`//鍒嗙粍id
 }
 
+// @Security ApiKeyAuth
 // @Summary 淇濆瓨鑱斿姩浠诲姟瑙勫垯鍙傛暟
 // @Description 淇濆瓨鑱斿姩浠诲姟瑙勫垯鍙傛暟
 // @Accept json
diff --git a/controllers/cameraTimerule.go b/controllers/cameraTimerule.go
index a4a249e..e8c1d4d 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
@@ -62,6 +63,7 @@
 	util.ResponseFormat(c,code.ComError,"淇濆瓨澶辫触")
 }
 
+// @Security ApiKeyAuth
 // @Summary 鍒犻櫎鏃堕棿瑙勫垯
 // @Description 鍒犻櫎鏃堕棿瑙勫垯
 // @Accept json
@@ -85,6 +87,7 @@
 	util.ResponseFormat(c, code.ComError, "鍒犻櫎澶辫触")
 }
 
+// @Security ApiKeyAuth
 // @Summary 鏌ユ壘鎵�鏈夋椂闂磋鍒�
 // @Description 鏌ユ壘鎵�鏈夋椂闂磋鍒�
 // @Accept json
diff --git a/controllers/capture.go b/controllers/capture.go
index f263e1b..94abac1 100644
--- a/controllers/capture.go
+++ b/controllers/capture.go
@@ -19,6 +19,7 @@
 	TreeNodes []string `json:"treeNodes"`
 }
 
+// @Security ApiKeyAuth
 // @Summary 瀹炴椂鎶撴媿
 // @Description 瀹炴椂鎶撴媿鏁版嵁
 // @Accept  json
diff --git a/controllers/cluster.go b/controllers/cluster.go
index 749d249..f81dade 100644
--- a/controllers/cluster.go
+++ b/controllers/cluster.go
@@ -54,6 +54,7 @@
 	NodeIps []string `json:"nodeIps"`
 }
 
+// @Security ApiKeyAuth
 // @Summary 鍒涘缓闆嗙兢
 // @Description 鍒涘缓闆嗙兢
 // @Accept json
@@ -79,6 +80,7 @@
 	}
 }
 
+// @Security ApiKeyAuth
 // @Summary 鐢熸垚闆嗙兢6浣嶉殢鏈哄瘑鐮�
 // @Description 鐢熸垚闆嗙兢6浣嶉殢鏈哄瘑鐮�
 // @Produce json
@@ -91,6 +93,7 @@
 	util.ResponseFormat(c,code.Success,pwd)
 }
 
+// @Security ApiKeyAuth
 // @Summary 鏌ヨ鏈湴闆嗙兢
 // @Description 鏌ヨ鏈湴闆嗙兢
 // @Produce json
@@ -108,6 +111,7 @@
 	}
 }
 
+// @Security ApiKeyAuth
 // @Summary 鎼滅储闆嗙兢
 // @Description 鎼滅储闆嗙兢
 // @Accept json
@@ -133,6 +137,7 @@
 	}
 }
 
+// @Security ApiKeyAuth
 // @Summary 閫氳繃searchNum寮傛鑾峰彇闆嗙兢鑺傜偣淇℃伅
 // @Description 閫氳繃searchNum寮傛鑾峰彇闆嗙兢鑺傜偣淇℃伅
 // @Accept json
@@ -151,6 +156,7 @@
 	}
 }
 
+// @Security ApiKeyAuth
 // @Summary 閫氳繃searchNum鍋滄鎼滅储
 // @Description 閫氳繃searchNum鍋滄鎼滅储
 // @Produce json
@@ -168,7 +174,7 @@
 	}
 }
 
-
+// @Security ApiKeyAuth
 // @Summary 鍔犲叆闆嗙兢
 // @Description 鍔犲叆闆嗙兢
 // @Accept json
@@ -195,6 +201,7 @@
 	}
 }
 
+// @Security ApiKeyAuth
 // @Summary 淇濆瓨闆嗙兢鍚嶇О
 // @Description 淇濆瓨闆嗙兢鍚嶇О
 // @Produce json
@@ -220,6 +227,7 @@
 	}
 }
 
+// @Security ApiKeyAuth
 // @Summary 閫�鍑洪泦缇�
 // @Description 閫�鍑洪泦缇�
 // @Produce json
diff --git a/controllers/dbtableperson.go b/controllers/dbtableperson.go
index baa0257..902e998 100644
--- a/controllers/dbtableperson.go
+++ b/controllers/dbtableperson.go
@@ -28,6 +28,7 @@
 type DbPersonController struct {
 }
 
+// @Security ApiKeyAuth
 // @Summary 娣诲姞搴曞簱浜哄憳
 // @Description 娣诲姞搴曞簱浜哄憳
 // @Accept  json
@@ -81,6 +82,7 @@
 	return result
 }
 
+// @Security ApiKeyAuth
 // @Summary 淇敼搴曞簱浜哄憳
 // @Description 淇敼搴曞簱浜哄憳
 // @Accept  json
@@ -108,6 +110,7 @@
 	}
 }
 
+// @Security ApiKeyAuth
 // @Summary 搴曞簱浜哄憳浠ュ浘鎼滃浘
 // @Description 搴曞簱浜哄憳浠ュ浘鎼滃浘
 // @Accept  json
@@ -240,6 +243,7 @@
 	return  resultList
 }
 
+// @Security ApiKeyAuth
 // @Summary 鏇存柊搴曞簱浜鸿劯鐓х墖
 // @Description 鏇存柊搴曞簱浜鸿劯鐓х墖
 // @Accept  json
@@ -366,6 +370,7 @@
 	return message
 }
 
+// @Security ApiKeyAuth
 // @Summary 鍒犻櫎搴曞簱浜哄憳
 // @Description 鍒犻櫎搴撲汉鍛�
 // @Accept  x-www-form-urlencoded
@@ -393,6 +398,7 @@
 
 type DelMultiPerson []string
 
+// @Security ApiKeyAuth
 // @Summary 鍒犻櫎搴曞簱浜哄憳
 // @Description 鍒犻櫎搴撲汉鍛�
 // @Accept  json
@@ -422,6 +428,7 @@
 	}
 }
 
+// @Security ApiKeyAuth
 // @Summary 鏌ヨ搴曞簱浜哄憳鍒楄〃
 // @Description 鏌ヨ搴撲汉鍛樺垪琛�
 // @Accept  json
@@ -491,6 +498,7 @@
 	TableIds  []string 		`json:"tableIds"`
 }
 
+// @Security ApiKeyAuth
 // @Summary 鎶撴媿浜哄憳鍔犲叆搴曞簱
 // @Description 鎶撴媿浜哄憳鍔犲叆搴曞簱
 // @Accept  json
diff --git a/controllers/dbtablesCon.go b/controllers/dbtablesCon.go
index 7b588a9..c3e09e5 100644
--- a/controllers/dbtablesCon.go
+++ b/controllers/dbtablesCon.go
@@ -20,6 +20,7 @@
 type DbTableController struct {
 }
 
+// @Security ApiKeyAuth
 // @Summary 鏄剧ず搴曞簱鍒楄〃
 // @Description 鏄剧ず鍚屾鎴栨湰鍦板簱鍒楄〃
 // @Accept  x-www-form-urlencoded
@@ -40,6 +41,7 @@
 	}
 }
 
+// @Security ApiKeyAuth
 // @Summary 鏌ヨ鏈満鎵�鏈夊簳搴撳垪琛�
 // @Description 鏌ヨ鏈満鎵�鏈夊簳搴撳垪琛�
 // @Accept  x-www-form-urlencoded
@@ -77,6 +79,7 @@
 	return data
 }
 
+// @Security ApiKeyAuth
 // @Summary 淇敼搴曞簱
 // @Description 淇敼鍚屾鎴栨湰鍦板簱
 // @Accept  json
@@ -143,6 +146,7 @@
 	Enable int `json:"enable"`
 }
 
+// @Security ApiKeyAuth
 // @Summary 淇敼搴曞簱鐘舵��
 // @Description 淇敼鍚屾鎴栨湰鍦板簱搴曞簱鐘舵��
 // @Accept  json
@@ -230,6 +234,7 @@
 	return flag
 }
 
+// @Security ApiKeyAuth
 // @Summary 娣诲姞搴曞簱
 // @Description 娣诲姞鍚屾鎴栨湰鍦板簱
 // @Accept  json
@@ -296,6 +301,7 @@
 	}
 }
 
+// @Security ApiKeyAuth
 // @Summary 鍒犻櫎搴曞簱
 // @Description 鍒犻櫎鍚屾鎴栨湰鍦板簱
 // @Accept  x-www-form-urlencoded
diff --git a/controllers/dictionary.go b/controllers/dictionary.go
index a68bc28..a71ecce 100644
--- a/controllers/dictionary.go
+++ b/controllers/dictionary.go
@@ -10,6 +10,7 @@
 type DictionaryController struct {
 }
 
+// @Security ApiKeyAuth
 // @Summary 鏍规嵁绫诲瀷鏌ユ壘瀛楀吀
 // @Description  鏍规嵁绫诲瀷鏌ユ壘瀛楀吀
 // @Produce json
@@ -28,6 +29,7 @@
 	}
 }
 
+// @Security ApiKeyAuth
 // @Summary 鏍规嵁鐖禝D鏌ユ壘瀛楀吀
 // @Description  鏍规嵁鐖禝D鏌ユ壘瀛楀吀
 // @Produce json
diff --git a/controllers/es.go b/controllers/es.go
index d67a80b..dd53714 100644
--- a/controllers/es.go
+++ b/controllers/es.go
@@ -21,6 +21,7 @@
 
 type EsController struct{}
 
+// @Security ApiKeyAuth
 // @Summary 姣斿鏁版嵁鏌ヨ
 // @Description  姣斿鏁版嵁鏌ヨ
 // @Accept  json
diff --git a/controllers/esSearch.go b/controllers/esSearch.go
index 9fd0f95..bd08e48 100644
--- a/controllers/esSearch.go
+++ b/controllers/esSearch.go
@@ -17,6 +17,7 @@
 
 type EsSearchController struct{}
 
+// @Security ApiKeyAuth
 // @Summary 妫�绱�
 // @Description 淇℃伅妫�绱㈠拰姣斿妫�绱�
 // @Accept  json
diff --git a/controllers/eventPush.go b/controllers/eventPush.go
index 02d0881..a203f40 100644
--- a/controllers/eventPush.go
+++ b/controllers/eventPush.go
@@ -47,6 +47,7 @@
 	Enable bool   `json:"enable"`
 }
 
+// @Security ApiKeyAuth
 // @Summary 浜嬩欢鎺ㄩ�佷繚瀛�
 // @Description 浜嬩欢鎺ㄩ�佷繚瀛�
 // @Tags 浜嬩欢鎺ㄩ��
@@ -70,6 +71,7 @@
 	}
 }
 
+// @Security ApiKeyAuth
 // @Summary 鏍规嵁浜嬩欢鎺ㄩ�佷富棰樼殑涓�绾у拰浜岀骇閫夐」鑾峰彇鏈�鍚庝笅鎷夎彍鍗曞垪琛�
 // @Description  鏍规嵁浜嬩欢鎺ㄩ�佷富棰樼殑涓�绾у拰浜岀骇閫夐」鑾峰彇鏈�鍚庝笅鎷夎彍鍗曞垪琛�
 // @Produce json
@@ -95,6 +97,7 @@
 	}
 }
 
+// @Security ApiKeyAuth
 // @Summary 鏌ュ叏閮�
 // @Description  鏌ュ叏閮�
 // @Produce json
@@ -114,6 +117,7 @@
 	}
 }
 
+// @Security ApiKeyAuth
 // @Summary 浜嬩欢鎺ㄩ�佺紪杈�
 // @Description  浜嬩欢鎺ㄩ�佺紪杈�
 // @Produce json
@@ -142,6 +146,7 @@
 	Enable bool   `json:"enable"`
 }
 
+// @Security ApiKeyAuth
 // @Summary 鏀瑰彉enable鐘舵��
 // @Description  鏀瑰彉enable鐘舵��
 // @Produce json
@@ -166,6 +171,7 @@
 	}
 }
 
+// @Security ApiKeyAuth
 // @Summary 鏍规嵁id鍒犻櫎
 // @Description  鏍规嵁id鍒犻櫎
 // @Accept x-www-form-urlencoded
diff --git a/controllers/fileController.go b/controllers/fileController.go
index ecdc766..fadef57 100644
--- a/controllers/fileController.go
+++ b/controllers/fileController.go
@@ -50,6 +50,7 @@
 
 //var weedfsUri = "http://192.168.1.182:9500/submit"
 
+// @Security ApiKeyAuth
 // @Summary 渚濇嵁鍥剧墖娣诲姞搴曞簱浜哄憳
 // @Description  渚濇嵁鍥剧墖娣诲姞搴曞簱杩斿洖鏁版嵁浜哄憳
 // @Accept  mpfd
@@ -110,6 +111,7 @@
 }
 var faceExtractedMap = make(map[string]FaceExtract,0)
 
+// @Security ApiKeyAuth
 // @Summary 浜鸿劯鎻愬彇
 // @Description  浜鸿劯鎻愬彇
 // @Produce json
@@ -369,6 +371,7 @@
 	}
 }
 
+// @Security ApiKeyAuth
 // @Summary 浠ュ浘鎼滃浘
 // @Description  浠ュ浘鎼滃浘
 // @Accept json
@@ -777,6 +780,7 @@
 
 /**涓婁紶鏂规硶**/
 
+// @Security ApiKeyAuth
 // @Summary 鎵归噺娣诲姞搴曞簱浜哄憳
 // @Description  渚濇嵁鍥剧墖鎵归噺娣诲姞搴曞簱浜哄憳
 // @Accept  mpfd
@@ -857,6 +861,7 @@
 	IdCard string `json:"idCard"`
 }
 
+// @Security ApiKeyAuth
 // @Summary 涓婁紶鍥剧墖 骞跺垏鍥�
 // @Description  涓婁紶鍥剧墖 骞跺垏鍥�
 // @Accept  mpfd
diff --git a/controllers/initForData.go b/controllers/initForData.go
index 2dcb218..1bd75ab 100644
--- a/controllers/initForData.go
+++ b/controllers/initForData.go
@@ -16,6 +16,7 @@
 type InitForData struct {
 }
 
+// @Security ApiKeyAuth
 // @Summary 鎶撴媿瀹炴椂鍥炬暟鎹垵濮嬪寲
 // @Description 瀹炴椂鑾峰彇鏁版嵁
 // @Accept  json
@@ -66,6 +67,7 @@
 	Tasks []string `json:"tasks"`
 }
 
+// @Security ApiKeyAuth
 // @Summary 瀹炴椂浠诲姟鐩戞帶鏁版嵁鍒濆鍖�
 // @Description 瀹炴椂鐩戞帶姣斿鏁版嵁
 // @Accept  json
diff --git a/controllers/monitoring.go b/controllers/monitoring.go
index 8586698..ccb3519 100644
--- a/controllers/monitoring.go
+++ b/controllers/monitoring.go
@@ -14,6 +14,7 @@
 	"webserver/extend/util"
 )
 
+// @Security ApiKeyAuth
 // @Summary 瀹炴椂鐩戞帶
 // @Description 瀹炴椂鐩戞帶姣斿鏁版嵁
 // @Accept  json
diff --git a/controllers/pollConfig.go b/controllers/pollConfig.go
index 389c713..445168d 100644
--- a/controllers/pollConfig.go
+++ b/controllers/pollConfig.go
@@ -18,6 +18,7 @@
 	Enable     bool   `json:"enable"`      //鏄惁鍚敤杞
 }
 
+// @Security ApiKeyAuth
 // @Summary 淇濆瓨杞鍛ㄦ湡
 // @Description 淇濆瓨杞鍛ㄦ湡
 // @Produce json
@@ -42,6 +43,7 @@
 	}
 }
 
+// @Security ApiKeyAuth
 // @Summary 淇濆瓨杞寤舵椂
 // @Description 淇濆瓨杞寤舵椂
 // @Produce json
@@ -66,6 +68,7 @@
 	}
 }
 
+// @Security ApiKeyAuth
 // @Summary 鑾峰彇鏈満杞閰嶇疆
 // @Description 鑾峰彇鏈満杞閰嶇疆
 // @Produce json
@@ -87,6 +90,7 @@
 	Enable bool `json:"enable"`
 }
 
+// @Security ApiKeyAuth
 // @Summary 鍒囨崲杞寮�鍏�
 // @Description 鍒囨崲杞寮�鍏�
 // @Produce json
diff --git a/controllers/sdk.go b/controllers/sdk.go
index a9ba8a3..cc76c7b 100644
--- a/controllers/sdk.go
+++ b/controllers/sdk.go
@@ -40,6 +40,7 @@
 	Sort  int    `json:"sort"`  //鍙傛暟椤哄簭
 }
 
+// @Security ApiKeyAuth
 // @Summary 绠楁硶淇濆瓨
 // @Description 绠楁硶淇濆瓨
 // @Produce json
@@ -65,6 +66,7 @@
 	}
 }
 
+// @Security ApiKeyAuth
 // @Summary 鏌ユ壘鎵�鏈夌畻娉�
 // @Description 鏌ユ壘鎵�鏈夌畻娉�
 // @Produce json
@@ -81,6 +83,7 @@
 	util.ResponseFormat(c, code.Success, sdks)
 }
 
+// @Security ApiKeyAuth
 // @Summary 鏍规嵁id鑾峰彇绠楁硶淇℃伅
 // @Description 鏍规嵁id鑾峰彇绠楁硶淇℃伅
 // @Produce json
@@ -123,6 +126,7 @@
 	}
 }
 
+// @Security ApiKeyAuth
 // @Summary 鏍规嵁taskId鑾峰彇绠楁硶淇℃伅
 // @Description 鏍规嵁taskId鑾峰彇绠楁硶淇℃伅
 // @Produce json
diff --git a/controllers/sysMenu.go b/controllers/sysMenu.go
index a7486a3..e83cb9a 100644
--- a/controllers/sysMenu.go
+++ b/controllers/sysMenu.go
@@ -13,6 +13,7 @@
 
 }
 
+// @Security ApiKeyAuth
 // @Summary 褰撳墠鐢ㄦ埛鐨勭郴缁熻彍鍗�
 // @Description 褰撳墠鐢ㄦ埛鐨勭郴缁熻彍鍗�
 // @Accept json
@@ -35,6 +36,7 @@
 	}
 }
 
+// @Security ApiKeyAuth
 // @Summary 鏌ユ壘褰撳墠鐢ㄦ埛鍙鐨勭郴缁熻彍鍗�
 // @Description 鏌ユ壘褰撳墠鐢ㄦ埛鍙鐨勭郴缁熻彍鍗�
 // @Accept json
diff --git a/controllers/sysRole.go b/controllers/sysRole.go
index 90a7bf7..6413473 100644
--- a/controllers/sysRole.go
+++ b/controllers/sysRole.go
@@ -11,6 +11,7 @@
 
 }
 
+// @Security ApiKeyAuth
 // @Summary 鏌ユ壘瑙掕壊鍒楄〃
 // @Description 鏌ユ壘瑙掕壊鍒楄〃
 // @Tags 绯荤粺瑙掕壊
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
diff --git a/controllers/taglist.go b/controllers/taglist.go
index 519fbea..2f3c5d9 100644
--- a/controllers/taglist.go
+++ b/controllers/taglist.go
@@ -15,6 +15,7 @@
 	"github.com/gin-gonic/gin"
 )
 
+// @Security ApiKeyAuth
 // @Summary 鏍囩鍒楄〃
 // @Description 杩斿洖搴曞簱鏍囩
 // @Accept  json
diff --git a/controllers/task.go b/controllers/task.go
index dbb8761..708371a 100644
--- a/controllers/task.go
+++ b/controllers/task.go
@@ -38,6 +38,7 @@
 	FaceExtract_VirtualSdkId = "virtual-faceextract-sdk-pull"//缁撴灉杈撳嚭鐨勭畻娉昳d
 )
 
+// @Security ApiKeyAuth
 // @Summary 鏌ユ壘鎵�鏈変换鍔★紝鍖呭惈浠诲姟淇℃伅鍜屽搴旂殑绠楁硶淇℃伅
 // @Description 鏌ユ壘鎵�鏈変换鍔�
 // @Produce json
@@ -69,6 +70,7 @@
 	}
 }
 
+// @Security ApiKeyAuth
 // @Summary 妫�绱㈤〉闈㈣幏鍙栨墍鏈変换鍔″垪琛紙鍖呭惈宸插垹闄ょ殑浠诲姟锛�
 // @Description 妫�绱㈤〉闈㈣幏鍙栨墍鏈変换鍔″垪琛紙鍖呭惈宸插垹闄ょ殑浠诲姟锛�
 // @Produce json
@@ -125,6 +127,7 @@
 	}
 }
 
+// @Security ApiKeyAuth
 // @Summary 娣诲姞浠诲姟
 // @Description 鏌ユ壘鎵�鏈変换鍔�
 // @Accept json
@@ -161,6 +164,7 @@
 	Sort int `json:"sort"`
 }
 
+// @Security ApiKeyAuth
 // @Summary 缁欎换鍔℃坊鍔犵畻娉�
 // @Description 浠诲姟娣诲姞绠楁硶
 // @Produce json
@@ -186,6 +190,7 @@
 	}
 }
 
+// @Security ApiKeyAuth
 // @Summary 浠诲姟鍒犻櫎绠楁硶
 // @Description 鏍规嵁taskid鍜宻dkid鍒犻櫎
 // @Produce json
@@ -211,6 +216,7 @@
 	}
 }
 
+// @Security ApiKeyAuth
 // @Summary 鏇存柊浠诲姟鍚嶇О
 // @Description 鏇存柊浠诲姟鍚嶇О
 // @Produce json
@@ -241,6 +247,7 @@
 	Enable bool `json:"enable"`
 }
 
+// @Security ApiKeyAuth
 // @Summary 鏇存柊浠诲姟鐘舵��
 // @Description 锛堢畻娉曚笉鍙�,鍙洿鏂颁换鍔$姸鎬侊級
 // @Produce json
@@ -266,7 +273,7 @@
 	}
 }
 
-
+// @Security ApiKeyAuth
 // @Summary 鍒犻櫎浠诲姟
 // @Description 鏍规嵁浠诲姟id鍒犻櫎浠诲姟
 // @Produce json
@@ -304,6 +311,7 @@
 	SdkArgValue string `json:"sdk_arg_value"`
 }
 
+// @Security ApiKeyAuth
 // @Summary 淇濆瓨绠楁硶瑙勫垯
 // @Description 淇濆瓨绠楁硶瑙勫垯
 // @Accept json
@@ -330,6 +338,7 @@
 	}
 }
 
+// @Security ApiKeyAuth
 // @Summary 鍒犻櫎绠楁硶瑙勫垯
 // @Description 鍒犻櫎绠楁硶瑙勫垯
 // @Produce json
@@ -354,7 +363,7 @@
 	}
 }
 
-
+// @Security ApiKeyAuth
 // @Summary 鏌ヨ绠楁硶瑙勫垯
 // @Description 鏌ヨ绠楁硶瑙勫垯
 // @Produce json
diff --git a/controllers/tasklist.go b/controllers/tasklist.go
index c616f1c..13653a6 100644
--- a/controllers/tasklist.go
+++ b/controllers/tasklist.go
@@ -13,7 +13,7 @@
 	"webserver/extend/util"
 )
 
-//浠诲姟鍒楄〃
+// @Security ApiKeyAuth
 // @Summary 浠诲姟鍒楄〃
 // @Description 杩斿洖浠诲姟鍒楄〃
 // @Accept  json
diff --git a/controllers/user.go b/controllers/user.go
index 56b5c8c..a78d271 100644
--- a/controllers/user.go
+++ b/controllers/user.go
@@ -65,6 +65,7 @@
 	}
 }
 
+// @Security ApiKeyAuth
 // @Summary 鑾峰彇褰撳墠鐢ㄦ埛淇℃伅
 // @Description 鑾峰彇褰撳墠鐢ㄦ埛淇℃伅
 // @Accept json
@@ -92,6 +93,7 @@
 	c.JSON(http.StatusOK,"閫�鍑烘垚鍔�")
 }
 
+// @Security ApiKeyAuth
 // @Summary 鏌ユ壘鎵�鏈夌敤鎴�
 // @Description 鏌ユ壘鎵�鏈夌敤鎴�
 // @Accept json
@@ -122,6 +124,7 @@
 	MenuIds []string `json:"menuIds"`
 }
 
+// @Security ApiKeyAuth
 // @Summary 缂栬緫姝ょ敤鎴凤紝杩斿洖姝ょ敤鎴风殑鏉冮檺鑿滃崟
 // @Description 缂栬緫姝ょ敤鎴凤紝杩斿洖姝ょ敤鎴风殑鏉冮檺鑿滃崟
 // @Accept json
@@ -146,6 +149,7 @@
 	}
 }
 
+// @Security ApiKeyAuth
 // @Summary 鏇存柊鐢ㄦ埛鍚嶏紝瀵嗙爜鍜岃彍鍗曟潈闄�
 // @Description 鏇存柊鐢ㄦ埛鍚嶏紝瀵嗙爜鍜岃彍鍗曟潈闄�
 // @Accept json

--
Gitblit v1.8.0