| | |
| | | // @Accept json |
| | | // @Produce json |
| | | // @Tags 摄像机规则 |
| | | // @Param cameraId 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/camera/rule/{cameraId} [get] |
| | | // @Router /data/api-v/camera/rule/findByCameraId [get] |
| | | func (crc CameraRuleController) FindByCameraId(c *gin.Context) { |
| | | cameraId := c.Param("cameraId") |
| | | cameraId := c.Query("cameraId") |
| | | if cameraId == "" { |
| | | util.ResponseFormat(c,code.RequestParamError,"") |
| | | return |