From 778cc4c24b1a96513a20fda75bdd0e3be5cabaab Mon Sep 17 00:00:00 2001 From: liuxiaolong <736321739@qq.com> Date: 星期六, 28 九月 2019 15:31:23 +0800 Subject: [PATCH] update swagger --- controllers/area.go | 7 ++----- 1 files changed, 2 insertions(+), 5 deletions(-) diff --git a/controllers/area.go b/controllers/area.go index c566987..673a351 100644 --- a/controllers/area.go +++ b/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,"鏇存柊鎴愬姛") -- Gitblit v1.8.0