From 7ce84b3d1e45d35c7c9f73561893039a05c16995 Mon Sep 17 00:00:00 2001
From: liuxiaolong <736321739@qq.com>
Date: 星期五, 20 十二月 2019 19:38:18 +0800
Subject: [PATCH] fix unTargz
---
controllers/cameraPolygon.go | 9 +++++----
1 files changed, 5 insertions(+), 4 deletions(-)
diff --git a/controllers/cameraPolygon.go b/controllers/cameraPolygon.go
index 07cf6b1..7117b62 100644
--- a/controllers/cameraPolygon.go
+++ b/controllers/cameraPolygon.go
@@ -13,6 +13,7 @@
type CameraPolygonVo struct {
CameraId string `json:"camera_id"` //鎽勫儚鏈篿d
+ SnapshotUrl string `json:"snapshot_url"` //蹇収鍦板潃
Line []PolygonS `json:"line"` //鐢荤殑鎵�鏈夌嚎
Rect []PolygonS `json:"rect"` //鐭╁舰
Arrow []PolygonS `json:"arrow"` //绠ご
@@ -32,6 +33,7 @@
Y float64 `json:"y"`
}
+// @Security ApiKeyAuth
// @Summary 淇濆瓨鎽勫儚鏈哄杈瑰舰
// @Description 淇濆瓨鎽勫儚鏈哄杈瑰舰
// @Accept json
@@ -53,10 +55,9 @@
util.ResponseFormat(c,code.ComError,"淇濆瓨澶辫触")
}
-
+// @Security ApiKeyAuth
// @Summary 鍒犻櫎鎽勫儚鏈哄尯鍩�
// @Description 鍒犻櫎鎽勫儚鏈哄尯鍩�
-// @Accept json
// @Produce json
// @Tags 鎽勫儚鏈哄杈瑰舰
// @Param id query string true "id"
@@ -79,9 +80,9 @@
util.ResponseFormat(c,code.ComError,"鍒犻櫎")
}
+// @Security ApiKeyAuth
// @Summary 鏌ユ壘鎽勫儚鏈哄尯鍩�
// @Description 鏌ユ壘鎽勫儚鏈哄尯鍩�
-// @Accept json
// @Produce json
// @Tags 鎽勫儚鏈哄杈瑰舰
// @Param cameraId query string true "cameraId"
@@ -115,7 +116,7 @@
if flag {
util.ResponseFormat(c,code.Success,data)
} else {
- util.ResponseFormat(c,code.ComError,data)
+ util.ResponseFormat(c,code.ComError,"鏇存柊澶辫触")
}
}
--
Gitblit v1.8.0