From 4d0e5b1e9f59ebba7f875c9a39a6ab84c9dde4b6 Mon Sep 17 00:00:00 2001
From: liuxiaolong <736321739@qq.com>
Date: 星期二, 12 十一月 2019 20:24:24 +0800
Subject: [PATCH] update swagger

---
 controllers/cluster.go        |    1 +
 controllers/user.go           |    4 ++--
 controllers/cameraTask.go     |    3 +++
 controllers/cameraTimerule.go |    1 -
 controllers/area.go           |    7 +++++--
 controllers/cameraTaskArgs.go |    1 +
 controllers/dbtableperson.go  |    2 +-
 controllers/dictionary.go     |    1 +
 controllers/task.go           |    4 ++++
 controllers/sdk.go            |    1 +
 controllers/cameraPolygon.go  |    2 --
 controllers/fileController.go |    7 ++++---
 controllers/syssetcont.go     |    3 +--
 controllers/camera.go         |    1 +
 controllers/cameraPTZ.go      |    1 +
 controllers/pollConfig.go     |    1 +
 controllers/eventPush.go      |    6 ++++++
 controllers/sysMenu.go        |    2 --
 18 files changed, 33 insertions(+), 15 deletions(-)

diff --git a/controllers/area.go b/controllers/area.go
index 705c05c..59e7f97 100644
--- a/controllers/area.go
+++ b/controllers/area.go
@@ -59,9 +59,10 @@
 	util.ResponseFormat(c, code.Success, arr)
 }
 
+// @Security ApiKeyAuth
+// @Accept x-www-form-urlencoded
 // @Summary 鍒锋柊Gb28181骞冲彴鏍�
 // @Description 鍒锋柊Gb28181骞冲彴鏍�
-// @Security ApiKeyAuth
 // @Produce json
 // @Tags menu
 // @Param id formData string false "鍥芥爣骞冲彴id"
@@ -99,6 +100,7 @@
 // @Security ApiKeyAuth
 // @Summary 娣诲姞menu鐨勫尯鍩�
 // @Description 娣诲姞鐩綍涓婂尯鍩�
+// @Accept x-www-form-urlencoded
 // @Produce json
 // @Tags menu
 // @Param name formData string true "鍖哄煙鍚嶅瓧"
@@ -127,7 +129,7 @@
 // @Security ApiKeyAuth
 // @Summary 淇敼鍚嶅瓧
 // @Description 淇敼鍖哄煙鍚嶅瓧
-// @Accept  json
+// @Accept x-www-form-urlencoded
 // @Produce json
 // @Tags menu
 // @Param id formData string true "鍖哄煙id"
@@ -168,6 +170,7 @@
 // @Security ApiKeyAuth
 // @Summary 鍒犻櫎涓�涓尯鍩�
 // @Description 鐐瑰嚮鍒犻櫎鎸夐挳鏃跺垹闄や竴涓尯鍩�
+// @Accept x-www-form-urlencoded
 // @Produce json
 // @Tags menu
 // @Param id formData string true "褰撳墠id"
diff --git a/controllers/camera.go b/controllers/camera.go
index c676d6b..374accf 100644
--- a/controllers/camera.go
+++ b/controllers/camera.go
@@ -294,6 +294,7 @@
 // @Security ApiKeyAuth
 // @Summary 鍒囨崲鎽勫儚鏈鸿繍琛屽疄鏃舵垨杞鐨勫紑鍏�
 // @Description 鍒囨崲鎽勫儚鏈鸿繍琛屽疄鏃舵垨杞鐨勫紑鍏�
+// @Accept x-www-form-urlencoded
 // @Produce json
 // @Tags camera
 // @Param cameraId formData string true "鎽勫儚鏈篿d"
diff --git a/controllers/cameraPTZ.go b/controllers/cameraPTZ.go
index 2cb0af2..aeceb15 100644
--- a/controllers/cameraPTZ.go
+++ b/controllers/cameraPTZ.go
@@ -23,6 +23,7 @@
 // @Summary 浜戝彴
 // @Description 鎽勫儚鏈轰簯鍙版帶鍒�
 // @Security ApiKeyAuth
+// @Accept json
 // @Produce json
 // @Tags camera
 // @Param ptzBody body controllers.PTZInstruct true "鎺у埗绫诲瀷锛歶p,down,left,right,zoomin,zoomout,stop"
diff --git a/controllers/cameraPolygon.go b/controllers/cameraPolygon.go
index e71a471..7117b62 100644
--- a/controllers/cameraPolygon.go
+++ b/controllers/cameraPolygon.go
@@ -58,7 +58,6 @@
 // @Security ApiKeyAuth
 // @Summary 鍒犻櫎鎽勫儚鏈哄尯鍩�
 // @Description 鍒犻櫎鎽勫儚鏈哄尯鍩�
-// @Accept json
 // @Produce json
 // @Tags 鎽勫儚鏈哄杈瑰舰
 // @Param  id query string  true "id"
@@ -84,7 +83,6 @@
 // @Security ApiKeyAuth
 // @Summary 鏌ユ壘鎽勫儚鏈哄尯鍩�
 // @Description 鏌ユ壘鎽勫儚鏈哄尯鍩�
-// @Accept json
 // @Produce json
 // @Tags 鎽勫儚鏈哄杈瑰舰
 // @Param  cameraId query string  true "cameraId"
diff --git a/controllers/cameraTask.go b/controllers/cameraTask.go
index 9d49181..77fa907 100644
--- a/controllers/cameraTask.go
+++ b/controllers/cameraTask.go
@@ -99,6 +99,7 @@
 // @Security ApiKeyAuth
 // @Summary 鎽勫儚鏈烘坊鍔犱竴涓换鍔�
 // @Description 鎽勫儚鏈烘坊鍔犱竴涓换鍔�
+// @Accept x-www-form-urlencoded
 // @Produce json
 // @Tags CameraTask
 // @Param cameraId formData string true "鎽勫儚鏈篿d"
@@ -245,6 +246,7 @@
 // @Security ApiKeyAuth
 // @Summary 淇濆瓨瑙勫垯缁勬姤璀︾瓑绾�
 // @Description 淇濆瓨瑙勫垯缁勬姤璀︾瓑绾�
+// @Accept json
 // @Produce json
 // @Tags CameraTask
 // @Param GroupLevel body controllers.GroupAlarmLevelVo true "alarmLevel"
@@ -276,6 +278,7 @@
 // @Security ApiKeyAuth
 // @Summary 鏇存柊浠诲姟鐘舵��
 // @Description 鏇存柊浠诲姟鐘舵��
+// @Accept json
 // @Produce json
 // @Tags CameraTask
 // @Param CameraTaskStatus body controllers.CameraTaskStatusVo true "鍙傛暟缁撴瀯浣�"
diff --git a/controllers/cameraTaskArgs.go b/controllers/cameraTaskArgs.go
index f7549ea..0b3d25f 100644
--- a/controllers/cameraTaskArgs.go
+++ b/controllers/cameraTaskArgs.go
@@ -71,6 +71,7 @@
 // @Security ApiKeyAuth
 // @Summary 鏍规嵁鍒嗙粍id鍒囨崲甯冮槻鎴栨挙闃�
 // @Description 鏍规嵁鍒嗙粍id鍒囨崲甯冮槻鎴栨挙闃�
+// @Accept x-www-form-urlencoded
 // @Produce json
 // @Tags CameraTaskArgs
 // @Param groupId formData string true "浠诲姟绠楁硶鍙傛暟鍒嗙粍id"
diff --git a/controllers/cameraTimerule.go b/controllers/cameraTimerule.go
index e8c1d4d..3c8fcce 100644
--- a/controllers/cameraTimerule.go
+++ b/controllers/cameraTimerule.go
@@ -66,7 +66,6 @@
 // @Security ApiKeyAuth
 // @Summary 鍒犻櫎鏃堕棿瑙勫垯
 // @Description 鍒犻櫎鏃堕棿瑙勫垯
-// @Accept json
 // @Produce json
 // @Tags CameraTimerule
 // @Param  id query string  true "id"
diff --git a/controllers/cluster.go b/controllers/cluster.go
index bfbda95..3536041 100644
--- a/controllers/cluster.go
+++ b/controllers/cluster.go
@@ -219,6 +219,7 @@
 // @Security ApiKeyAuth
 // @Summary 淇濆瓨闆嗙兢鍚嶇О
 // @Description 淇濆瓨闆嗙兢鍚嶇О
+// @Accept x-www-form-urlencoded
 // @Produce json
 // @Tags cluster
 // @Param clusterName formData string true "闆嗙兢鍚嶇О"
diff --git a/controllers/dbtableperson.go b/controllers/dbtableperson.go
index 91c3550..06ab88b 100644
--- a/controllers/dbtableperson.go
+++ b/controllers/dbtableperson.go
@@ -246,7 +246,7 @@
 // @Security ApiKeyAuth
 // @Summary 鏇存柊搴曞簱浜鸿劯鐓х墖
 // @Description 鏇存柊搴曞簱浜鸿劯鐓х墖
-// @Accept  json
+// @Accept multipart/form-data
 // @Produce json
 // @Tags dbperson 搴曞簱浜哄憳
 // @Param id formData string true "浜哄憳id"
diff --git a/controllers/dictionary.go b/controllers/dictionary.go
index a71ecce..6654f22 100644
--- a/controllers/dictionary.go
+++ b/controllers/dictionary.go
@@ -32,6 +32,7 @@
 // @Security ApiKeyAuth
 // @Summary 鏍规嵁鐖禝D鏌ユ壘瀛楀吀
 // @Description  鏍规嵁鐖禝D鏌ユ壘瀛楀吀
+// @Accept x-www-form-urlencoded
 // @Produce json
 // @Tags 瀛楀吀
 // @Param parentId query string false "parentId"
diff --git a/controllers/eventPush.go b/controllers/eventPush.go
index a203f40..4580206 100644
--- a/controllers/eventPush.go
+++ b/controllers/eventPush.go
@@ -50,6 +50,8 @@
 // @Security ApiKeyAuth
 // @Summary 浜嬩欢鎺ㄩ�佷繚瀛�
 // @Description 浜嬩欢鎺ㄩ�佷繚瀛�
+// @Accept json
+// @Produce json
 // @Tags 浜嬩欢鎺ㄩ��
 // @Param SaveArgs body controllers.EventPushVo true "鏃堕棿鎺ㄩ�佷繚瀛樺弬鏁�"
 // @Success 200 {string} json "{"code":200, success:true, msg:"", data:""}"
@@ -74,6 +76,7 @@
 // @Security ApiKeyAuth
 // @Summary 鏍规嵁浜嬩欢鎺ㄩ�佷富棰樼殑涓�绾у拰浜岀骇閫夐」鑾峰彇鏈�鍚庝笅鎷夎彍鍗曞垪琛�
 // @Description  鏍规嵁浜嬩欢鎺ㄩ�佷富棰樼殑涓�绾у拰浜岀骇閫夐」鑾峰彇鏈�鍚庝笅鎷夎彍鍗曞垪琛�
+// @Accept x-www-form-urlencoded
 // @Produce json
 // @Tags 浜嬩欢鎺ㄩ��
 // @Param topic query string true "涓�绾т富棰橀�夐」,渚嬪锛歝amera(鎽勫儚鏈�)"
@@ -100,6 +103,7 @@
 // @Security ApiKeyAuth
 // @Summary 鏌ュ叏閮�
 // @Description  鏌ュ叏閮�
+// @Accept x-www-form-urlencoded
 // @Produce json
 // @Tags 浜嬩欢鎺ㄩ��
 // @Param name query string false "浜嬩欢鍚嶇О"
@@ -120,6 +124,7 @@
 // @Security ApiKeyAuth
 // @Summary 浜嬩欢鎺ㄩ�佺紪杈�
 // @Description  浜嬩欢鎺ㄩ�佺紪杈�
+// @Accept x-www-form-urlencoded
 // @Produce json
 // @Tags 浜嬩欢鎺ㄩ��
 // @Param id query string true "id"
@@ -149,6 +154,7 @@
 // @Security ApiKeyAuth
 // @Summary 鏀瑰彉enable鐘舵��
 // @Description  鏀瑰彉enable鐘舵��
+// @Accept json
 // @Produce json
 // @Tags 浜嬩欢鎺ㄩ��
 // @Param statusBody body controllers.ChangeStatusVo true "鍙傛暟缁撴瀯"
diff --git a/controllers/fileController.go b/controllers/fileController.go
index 2594c86..dc54ec3 100644
--- a/controllers/fileController.go
+++ b/controllers/fileController.go
@@ -53,7 +53,7 @@
 // @Security ApiKeyAuth
 // @Summary 渚濇嵁鍥剧墖娣诲姞搴曞簱浜哄憳
 // @Description  渚濇嵁鍥剧墖娣诲姞搴曞簱杩斿洖鏁版嵁浜哄憳
-// @Accept  mpfd
+// @Accept  multipart/form-data
 // @Produce json
 // @Tags dbperson 搴曞簱浜哄憳
 // @Param file formData file true "搴曞簱浜哄憳鍥剧墖"
@@ -114,6 +114,7 @@
 // @Security ApiKeyAuth
 // @Summary 浜鸿劯鎻愬彇
 // @Description  浜鸿劯鎻愬彇
+// @Accept multipart/form-data
 // @Produce json
 // @Tags 浠ュ浘鎼滃浘
 // @Param file formData file true "浜哄憳鍥剧墖"
@@ -807,7 +808,7 @@
 // @Security ApiKeyAuth
 // @Summary 鎵归噺娣诲姞搴曞簱浜哄憳
 // @Description  渚濇嵁鍥剧墖鎵归噺娣诲姞搴曞簱浜哄憳
-// @Accept  mpfd
+// @Accept  multipart/form-data
 // @Produce json
 // @Tags dbperson 搴曞簱浜哄憳
 // @Param files formData file[] true "澶氫釜搴曞簱浜哄憳鍥剧墖"
@@ -898,7 +899,7 @@
 // @Security ApiKeyAuth
 // @Summary 涓婁紶鍥剧墖 骞跺垏鍥�
 // @Description  涓婁紶鍥剧墖 骞跺垏鍥�
-// @Accept  mpfd
+// @Accept  multipart/form-data
 // @Produce json
 // @Tags dbperson 搴曞簱浜哄憳
 // @Param file formData file true "搴曞簱浜哄憳鍥剧墖"
diff --git a/controllers/pollConfig.go b/controllers/pollConfig.go
index 445168d..9362d88 100644
--- a/controllers/pollConfig.go
+++ b/controllers/pollConfig.go
@@ -93,6 +93,7 @@
 // @Security ApiKeyAuth
 // @Summary 鍒囨崲杞寮�鍏�
 // @Description 鍒囨崲杞寮�鍏�
+// @Accept json
 // @Produce json
 // @Tags 杞閰嶇疆
 // @Param argBody body controllers.PollEnableVo true "寮�鍏冲弬鏁�"
diff --git a/controllers/sdk.go b/controllers/sdk.go
index cc76c7b..f44cd0d 100644
--- a/controllers/sdk.go
+++ b/controllers/sdk.go
@@ -43,6 +43,7 @@
 // @Security ApiKeyAuth
 // @Summary 绠楁硶淇濆瓨
 // @Description 绠楁硶淇濆瓨
+// @Accept json
 // @Produce json
 // @Tags sdk
 // @Param reqMap body controllers.SdkVo true "浜鸿劯妫�娴�"
diff --git a/controllers/sysMenu.go b/controllers/sysMenu.go
index 7a6dad7..d0fc177 100644
--- a/controllers/sysMenu.go
+++ b/controllers/sysMenu.go
@@ -16,7 +16,6 @@
 // @Security ApiKeyAuth
 // @Summary 褰撳墠鐢ㄦ埛鐨勭郴缁熻彍鍗�
 // @Description 褰撳墠鐢ㄦ埛鐨勭郴缁熻彍鍗�
-// @Accept json
 // @Produce json
 // @Tags 绯荤粺鑿滃崟
 // @Success 200 {string} json "{"code":200, success:true, msg:"", data:""}"
@@ -38,7 +37,6 @@
 // @Security ApiKeyAuth
 // @Summary 鏌ユ壘褰撳墠鐢ㄦ埛鍙鐨勭郴缁熻彍鍗�
 // @Description 鏌ユ壘褰撳墠鐢ㄦ埛鍙鐨勭郴缁熻彍鍗�
-// @Accept json
 // @Produce json
 // @Tags 绯荤粺鑿滃崟
 // @Success 200 {string} json "{"code":200, success:true, msg:"", data:""}"
diff --git a/controllers/syssetcont.go b/controllers/syssetcont.go
index 96705e3..9275310 100644
--- a/controllers/syssetcont.go
+++ b/controllers/syssetcont.go
@@ -101,7 +101,6 @@
 // @Security ApiKeyAuth
 // @Summary 瀛樺偍淇℃伅淇敼
 // @Description 瀛樺偍淇℃伅淇敼
-// @Accept  json
 // @Produce json
 // @Tags sysset
 // @Success 200 {string} json "{"code":200, msg:"鐩綍缁撴瀯鏁版嵁", success:true}"
@@ -283,7 +282,6 @@
 // @Security ApiKeyAuth
 // @Summary 娴嬭瘯鍚屾鏃堕棿
 // @Description 娴嬭瘯鍚屾鏃堕棿鏈嶅姟鍣ㄦ槸鍚﹀彲鐢�
-// @Accept  json
 // @Produce json
 // @Tags sysset
 // @Param server query string true "鏃堕棿鏈嶅姟鍣╥p"
@@ -404,6 +402,7 @@
 
 // @Summary 璁剧疆瀹氭椂閲嶅惎
 // @Description 璁剧疆瀹氭椂閲嶅惎浠诲姟鐨勯厤缃鍒�
+// @Accept x-www-form-urlencoded
 // @Produce json
 // @Tags sysset
 // @Success 200 {string} json "{"code":200, msg:"鐩綍缁撴瀯鏁版嵁", success:true}"
diff --git a/controllers/task.go b/controllers/task.go
index 57f9414..4f2dd14 100644
--- a/controllers/task.go
+++ b/controllers/task.go
@@ -167,6 +167,7 @@
 // @Security ApiKeyAuth
 // @Summary 缁欎换鍔℃坊鍔犵畻娉�
 // @Description 浠诲姟娣诲姞绠楁硶
+// @Accept json
 // @Produce json
 // @Tags task
 // @Param taskSdkAdd body controllers.TaskSdkAdd true "浠诲姟id"
@@ -219,6 +220,7 @@
 // @Security ApiKeyAuth
 // @Summary 鏇存柊浠诲姟鍚嶇О
 // @Description 鏇存柊浠诲姟鍚嶇О
+// @Accept x-www-form-urlencoded
 // @Produce json
 // @Tags task
 // @Param taskId formData string true "taskId"
@@ -250,6 +252,7 @@
 // @Security ApiKeyAuth
 // @Summary 鏇存柊浠诲姟鐘舵��
 // @Description 锛堢畻娉曚笉鍙�,鍙洿鏂颁换鍔$姸鎬侊級
+// @Accept json
 // @Produce json
 // @Tags task
 // @Param taskStatus body controllers.TaskStatusVo true "鍙傛暟"
@@ -341,6 +344,7 @@
 // @Security ApiKeyAuth
 // @Summary 鍒犻櫎绠楁硶瑙勫垯
 // @Description 鍒犻櫎绠楁硶瑙勫垯
+// @Accept x-www-form-urlencoded
 // @Produce json
 // @Tags 绠楁硶瑙勫垯
 // @Param taskId formData string true "taskId"
diff --git a/controllers/user.go b/controllers/user.go
index 6f5fc2f..170c19f 100644
--- a/controllers/user.go
+++ b/controllers/user.go
@@ -21,7 +21,7 @@
 
 // @Summary 鐢ㄦ埛鐧诲綍
 // @Description 鐢ㄦ埛鐧诲綍
-// @Accept json
+// @Accept x-www-form-urlencoded
 // @Produce json
 // @Tags 鐢ㄦ埛
 // @Param username formData string true "鐢ㄦ埛鍚�"
@@ -124,7 +124,7 @@
 // @Security ApiKeyAuth
 // @Summary 缂栬緫姝ょ敤鎴凤紝杩斿洖姝ょ敤鎴风殑鏉冮檺鑿滃崟
 // @Description 缂栬緫姝ょ敤鎴凤紝杩斿洖姝ょ敤鎴风殑鏉冮檺鑿滃崟
-// @Accept json
+// @Accept x-www-form-urlencoded
 // @Produce json
 // @Tags 鐢ㄦ埛
 // @Param userId formData string true "鐢ㄦ埛id"

--
Gitblit v1.8.0