From 58adc232b90053d67b87f1809e08014ee6c5adaf Mon Sep 17 00:00:00 2001 From: sunty <suntianyu0923@163.com> Date: 星期三, 24 七月 2019 15:39:40 +0800 Subject: [PATCH] add defenceState query body --- controllers/camera.go | 5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-) diff --git a/controllers/camera.go b/controllers/camera.go index 3017cdf..c0272b9 100644 --- a/controllers/camera.go +++ b/controllers/camera.go @@ -21,7 +21,7 @@ Name string `json:"name"` Type int `json:"type" ` Addr string `json:"addr"` - Areaid uint `json:"areaid"` + Areaid string `json:"areaid"` Longitude float64 `json:"longitude"` Latitude float64 `json:"latitude"` Rtsp string `json:"rtsp"` @@ -266,7 +266,8 @@ // @Router /data/api-v/camera/updateSnapshotUrl/{cid} [get] func(cc CameraController) UpdateSnapshotUrl(c *gin.Context){ cid := c.Param("cid") - filename, err := service.UpdateSnapshotUrl(cid) + //filename, err := service.UpdateSnapshotUrl(cid) + filename, err := service.UpdateCapture(cid) if err != nil { util.ResponseFormat(c, code.ComError, "鏇存柊澶辫触") return -- Gitblit v1.8.0