| | |
| | | // @Description 刷新Gb28181平台树 |
| | | // @Produce json |
| | | // @Tags menu |
| | | // @Param id formData string true "国标平台id" |
| | | // @Param id formData string false "国标平台id" |
| | | // @Success 200 {string} json "{"code":200, data:"",msg:"请求成功", success:true}" |
| | | // @Failure 200 {string} json "{"code":500, data:"",msg:"请求失败", success:false}" |
| | | // @Router /data/api-v/area/gb28181TreeRefresh [post] |
| | | func (ac AreaController) Gb28181TreeRefresh(c *gin.Context) { |
| | | id := c.PostForm("id") |
| | | if id =="" { |
| | | util.ResponseFormat(c, code.RequestParamError, "参数错误") |
| | | return |
| | | } |
| | | |
| | | var api dbapi.AreaApi |
| | | if api.Gb28181TreeRefresh(id) { |
| | | util.ResponseFormat(c,code.UpdateSuccess,"更新成功") |