From 875d8c725cbc8e7ed47e763a3b13bc5d22760258 Mon Sep 17 00:00:00 2001
From: liuxiaolong <736321739@qq.com>
Date: 星期四, 31 十月 2019 18:39:29 +0800
Subject: [PATCH] update swagger
---
controllers/camera.go | 16 ++++++++--------
controllers/task.go | 1 +
2 files changed, 9 insertions(+), 8 deletions(-)
diff --git a/controllers/camera.go b/controllers/camera.go
index e7105b2..0afa253 100644
--- a/controllers/camera.go
+++ b/controllers/camera.go
@@ -170,9 +170,9 @@
return json.Marshal(test)
}
+// @Security ApiKeyAuth
// @Summary 灏嗘憚鍍忔満鎸傚埌鎸囧畾鐨勭洰褰曟爲涓�
// @Description 灏嗘憚鍍忔満鎸傚埌鎸囧畾鐨勭洰褰曟爲涓�
-// @Security ApiKeyAuth
// @Produce json
// @Tags camera
// @Param cameraId path string true "鎽勫儚鏈篿d"
@@ -187,9 +187,9 @@
fmt.Println(areaId)
}
+// @Security ApiKeyAuth
// @Summary 鍒犻櫎鏌愪竴涓洰褰曟爲涓嬬殑鎸囧畾鎽勫儚鏈�
// @Description 鍒犻櫎鏌愪竴涓洰褰曟爲涓嬬殑鎸囧畾鎽勫儚鏈�
-// @Security ApiKeyAuth
// @Produce json
// @Tags camera
// @Param cameraId path string true "鎽勫儚鏈篿d"
@@ -204,9 +204,9 @@
fmt.Println(areaId)
}
+// @Security ApiKeyAuth
// @Summary 鏍规嵁server鑾峰彇鎵�鏈夋憚鍍忔満鍒楄〃鍙婁俊鎭�
// @Description 鏍规嵁server鑾峰彇鎵�鏈夋憚鍍忔満鍒楄〃鍙婁俊鎭�
-// @Security ApiKeyAuth
// @Produce json
// @Tags camera
// @Param cameraName query string false "鎽勫儚鏈哄悕绉�"
@@ -230,9 +230,9 @@
}
}
+// @Security ApiKeyAuth
// @Summary 鑾峰彇杩愯绫诲瀷鑾峰彇鎽勫儚鏈哄垪琛�
// @Description 鑾峰彇杩愯绫诲瀷鑾峰彇鎽勫儚鏈哄垪琛�
-// @Security ApiKeyAuth
// @Produce json
// @Tags camera
// @Param runType query int true "0锛氭煡杞锛�1锛氭煡瀹炴椂"
@@ -263,9 +263,9 @@
}
}
+// @Security ApiKeyAuth
// @Summary 鍒囨崲鎽勫儚鏈鸿繍琛屽疄鏃舵垨杞鐨勫紑鍏�
// @Description 鍒囨崲鎽勫儚鏈鸿繍琛屽疄鏃舵垨杞鐨勫紑鍏�
-// @Security ApiKeyAuth
// @Produce json
// @Tags camera
// @Param cameraId formData string true "鎽勫儚鏈篿d"
@@ -292,9 +292,9 @@
}
}
+// @Security ApiKeyAuth
// @Summary 鏇存柊搴曞浘
// @Description 鍒锋柊搴曞浘
-// @Security ApiKeyAuth
// @Produce json
// @Tags camera
// @Param cid path string true "鎽勫儚鏈篿d"
@@ -318,9 +318,9 @@
RunType int `json:"run_type"`
}
+// @Security ApiKeyAuth
// @Summary 鎽勫儚鏈鸿疆璇㈠拰瀹炴椂鐘舵�佸垏鎹�
// @Description 鎽勫儚鏈鸿疆璇㈠拰瀹炴椂鐘舵�佸垏鎹�
-// @Security ApiKeyAuth
// @Produce json
// @Tags camera
// @Param changeRunBody body controllers.CameraChangeRunVo true "鍙傛暟缁撴瀯浣�,0锛氬疄鏃跺垏杞锛�1锛氳疆璇㈠垏瀹炴椂"
@@ -343,9 +343,9 @@
}
}
+// @Security ApiKeyAuth
// @Summary 缁熻瀹炴椂鍜岃疆璇㈢殑杩愯璺暟鎯呭喌
// @Description 缁熻瀹炴椂鍜岃疆璇㈢殑杩愯璺暟鎯呭喌
-// @Security ApiKeyAuth
// @Produce json
// @Tags camera
// @Success 200 {string} json "{"code":200, success:true, msg:"", data:""}"
diff --git a/controllers/task.go b/controllers/task.go
index 784f0eb..57f9414 100644
--- a/controllers/task.go
+++ b/controllers/task.go
@@ -389,6 +389,7 @@
}
}
+// @Security ApiKeyAuth
// @Summary 缁熻姣忎釜浠诲姟鐨勬憚鍍忔満鏁伴噺
// @Description 缁熻姣忎釜浠诲姟鐨勬憚鍍忔満鏁伴噺
// @Produce json
--
Gitblit v1.8.0