liuxiaolong
2019-09-28 778cc4c24b1a96513a20fda75bdd0e3be5cabaab
update swagger
1个文件已修改
7 ■■■■ 已修改文件
controllers/area.go 7 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
controllers/area.go
@@ -60,16 +60,13 @@
// @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,"更新成功")