From 6858449eef5223bb4cb8850054a47a5884da1fca Mon Sep 17 00:00:00 2001
From: liuxiaolong <736321739@qq.com>
Date: 星期三, 23 十月 2019 17:15:56 +0800
Subject: [PATCH] update swagger

---
 controllers/syssetcont.go |    6 +++---
 controllers/camera.go     |    4 ++--
 controllers/user.go       |    4 ++--
 controllers/pollConfig.go |    4 ++--
 controllers/eventPush.go  |    2 +-
 controllers/task.go       |    3 ++-
 6 files changed, 12 insertions(+), 11 deletions(-)

diff --git a/controllers/camera.go b/controllers/camera.go
index 8cf4d24..9be77eb 100644
--- a/controllers/camera.go
+++ b/controllers/camera.go
@@ -260,8 +260,8 @@
 // @Description 鍒囨崲鎽勫儚鏈鸿繍琛屽疄鏃舵垨杞鐨勫紑鍏�
 // @Produce json
 // @Tags camera
-// @Param cameraId query string true "鎽勫儚鏈篿d"
-// @Param runEnable query bool true "寮�鍚細true锛屽叧闂細false"
+// @Param cameraId formData string true "鎽勫儚鏈篿d"
+// @Param runEnable formData bool true "寮�鍚細true锛屽叧闂細false"
 // @Success 200 {string} json "{"code":200, success:true, msg:"", data:""}"
 // @Failure 500 {string} json "{"code":500, success:false, msg:"",data:""}"
 // @Router /data/api-v/camera/updateRunEnable [post]
diff --git a/controllers/eventPush.go b/controllers/eventPush.go
index 18f8a49..02d0881 100644
--- a/controllers/eventPush.go
+++ b/controllers/eventPush.go
@@ -171,7 +171,7 @@
 // @Accept x-www-form-urlencoded
 // @Produce json
 // @Tags 浜嬩欢鎺ㄩ��
-// @Param id query string true "id"
+// @Param id formData string true "id"
 // @Success 200 {string} json "{"code":200, success:true, msg:"", data:""}"
 // @Failure 500 {string} json "{"code":500, success:false, msg:"",data:""}"
 // @Router /data/api-v/eventPush/delete [post]
diff --git a/controllers/pollConfig.go b/controllers/pollConfig.go
index 4efe3b8..389c713 100644
--- a/controllers/pollConfig.go
+++ b/controllers/pollConfig.go
@@ -22,7 +22,7 @@
 // @Description 淇濆瓨杞鍛ㄦ湡
 // @Produce json
 // @Tags 杞閰嶇疆
-// @Param period query int true "杞鍛ㄦ湡"
+// @Param period formData int true "杞鍛ㄦ湡"
 // @Success 200 {string} json "{"code":200, success:true, msg:"", data:""}"
 // @Failure 500 {string} json "{"code":500, success:false, msg:"",data:""}"
 // @Router /data/api-v/pollConfig/savePollPeriod [post]
@@ -46,7 +46,7 @@
 // @Description 淇濆瓨杞寤舵椂
 // @Produce json
 // @Tags 杞閰嶇疆
-// @Param delay query int true "杞寤舵椂鏃堕棿"
+// @Param delay formData int true "杞寤舵椂鏃堕棿"
 // @Success 200 {string} json "{"code":200, success:true, msg:"", data:""}"
 // @Failure 500 {string} json "{"code":500, success:false, msg:"",data:""}"
 // @Router /data/api-v/pollConfig/savePollDelay [post]
diff --git a/controllers/syssetcont.go b/controllers/syssetcont.go
index 127056e..afab0db 100644
--- a/controllers/syssetcont.go
+++ b/controllers/syssetcont.go
@@ -122,8 +122,8 @@
 // @Accept  x-www-form-urlencoded
 // @Produce json
 // @Tags sysset
-// @Param min_video_len query string true "瑙嗛鎴彇鏈�鐭椂闀�"
-// @Param max_video_len query string true "瑙嗛鎴彇鏈�闀挎椂闀�"
+// @Param min_video_len formData string true "瑙嗛鎴彇鏈�鐭椂闀�"
+// @Param max_video_len formData string true "瑙嗛鎴彇鏈�闀挎椂闀�"
 // @Success 200 {string} json "{"code":200, msg:"鐩綍缁撴瀯鏁版嵁", success:true}"
 // @Failure 500 {string} json "{"code":500,  msg:"杩斿洖閿欒淇℃伅", success:false}"
 // @Router /data/api-v/sysset/videoLenEdit [POST]
@@ -183,7 +183,7 @@
 // @Accept  x-www-form-urlencoded
 // @Produce json
 // @Tags sysset
-// @Param dev_name query string true "鍒嗘瀽璁惧鍚嶇О"
+// @Param dev_name formData string true "鍒嗘瀽璁惧鍚嶇О"
 // @Success 200 {string} json "{"code":200, msg:"鐩綍缁撴瀯鏁版嵁", success:true}"
 // @Failure 500 {string} json "{"code":500,  msg:"杩斿洖閿欒淇℃伅", success:false}"
 // @Router /data/api-v/sysset/saveDevInfo [POST]
diff --git a/controllers/task.go b/controllers/task.go
index 6e675a8..8e5ff47 100644
--- a/controllers/task.go
+++ b/controllers/task.go
@@ -274,7 +274,8 @@
 // @Description 鍒犻櫎绠楁硶瑙勫垯
 // @Produce json
 // @Tags 绠楁硶瑙勫垯
-// @Param id formData string true "id"
+// @Param taskId formData string true "taskId"
+// @Param sdkId formData string true "sdkId"
 // @Success 200 {string} json "{"code":200, success:true, msg:"", data:""}"
 // @Failure 500 {string} json "{"code":500, success:false, msg:"",data:""}"
 // @Router /data/api-v/task/deleteTaskSdkRule [post]
diff --git a/controllers/user.go b/controllers/user.go
index a26c426..4aa91b6 100644
--- a/controllers/user.go
+++ b/controllers/user.go
@@ -24,8 +24,8 @@
 // @Accept json
 // @Produce json
 // @Tags 鐢ㄦ埛
-// @Param username query string true "鐢ㄦ埛鍚�"
-// @Param password query string true "瀵嗙爜"
+// @Param username formData string true "鐢ㄦ埛鍚�"
+// @Param password formData string true "瀵嗙爜"
 // @Success 200 {string} json "{"code":200, success:true, msg:"", data:""}"
 // @Failure 500 {string} json "{"code":500, success:false, msg:"", data:""}"
 // @Router /data/api-u/sys/login [post]

--
Gitblit v1.8.0