From e29f1ded0f7381c00ef75f72cf9ecda52c50eb3e Mon Sep 17 00:00:00 2001 From: liuxiaolong <736321739@qq.com> Date: 星期三, 06 十一月 2019 14:48:57 +0800 Subject: [PATCH] fix --- controllers/cameraPolygon.go | 7 +++++-- 1 files changed, 5 insertions(+), 2 deletions(-) diff --git a/controllers/cameraPolygon.go b/controllers/cameraPolygon.go index 07cf6b1..e71a471 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,7 +55,7 @@ util.ResponseFormat(c,code.ComError,"淇濆瓨澶辫触") } - +// @Security ApiKeyAuth // @Summary 鍒犻櫎鎽勫儚鏈哄尯鍩� // @Description 鍒犻櫎鎽勫儚鏈哄尯鍩� // @Accept json @@ -79,6 +81,7 @@ util.ResponseFormat(c,code.ComError,"鍒犻櫎") } +// @Security ApiKeyAuth // @Summary 鏌ユ壘鎽勫儚鏈哄尯鍩� // @Description 鏌ユ壘鎽勫儚鏈哄尯鍩� // @Accept json @@ -115,7 +118,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