| | |
| | | Y float64 `json:"y"` |
| | | } |
| | | |
| | | // @Summary 保存摄像机多边形 |
| | | // @Description 保存摄像机多边形 |
| | | // @Accept json |
| | | // @Produce json |
| | | // @Tags 摄像机多边形 |
| | | // @Param cameraPolygon body controllers.CameraPolygonVo 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/polygon/save [post] |
| | | func (controller CameraPolygonController) Save(c *gin.Context) { |
| | | paramBody := make(map[string]interface{},0) |
| | | c.BindJSON(¶mBody) |
| | |
| | | } |
| | | |
| | | |
| | | // @Summary 删除摄像机区域 |
| | | // @Description 删除摄像机区域 |
| | | // @Accept json |
| | | // @Produce json |
| | | // @Tags 摄像机多边形 |
| | | // @Param id query 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/polygon/delete [get] |
| | | func (controller CameraPolygonController) Delete(c *gin.Context) { |
| | | id := c.Query("id") |
| | | if id == "" { |
| | |
| | | util.ResponseFormat(c,code.ComError,"删除") |
| | | } |
| | | |
| | | // @Summary 查找摄像机区域 |
| | | // @Description 查找摄像机区域 |
| | | // @Accept json |
| | | // @Produce json |
| | | // @Tags 摄像机多边形 |
| | | // @Param cameraId query string true "cameraId" |
| | | // @Success 200 {string} json "{"code":200, success:true, msg:"", data:""}" |
| | | // @Failure 500 {string} json "{"code":500, success:false, msg:"",data:""}" |
| | | // @Router /data/api-v/polygon/findByCameraId [get] |
| | | func (controller CameraPolygonController) FindByCameraId(c *gin.Context) { |
| | | cameraId := c.Query("cameraId") |
| | | if cameraId == "" { |