From e371ea3479d0f9c1a89ea04ac25fe49ee7154a50 Mon Sep 17 00:00:00 2001 From: liuxiaolong <liuxiaolong@aiotlink.com> Date: 星期日, 28 六月 2020 11:10:19 +0800 Subject: [PATCH] fix url --- controllers/cameraRule.go | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/controllers/cameraRule.go b/controllers/cameraRule.go index 4fbaf75..60e6bbf 100644 --- a/controllers/cameraRule.go +++ b/controllers/cameraRule.go @@ -172,12 +172,12 @@ // @Description 鏍规嵁鍒嗙粍id鍒犻櫎鎽勫儚鏈虹畻娉曡鍒� // @Produce json // @Tags CameraTaskArgs -// @Param groupId query string true "浠诲姟绠楁硶鍙傛暟鍒嗙粍id" +// @Param groupId path 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/deleteByGroup [get] +// @Router /data/api-v/camera/rule/deleteGroup/{groupId} [get] func (crc CameraRuleController) DeleteByGroup(c *gin.Context) { - groupId := c.Query("groupId") + groupId := c.Param("groupId") if groupId == "" { util.ResponseFormat(c, code.RequestParamError, "id蹇呭~") return -- Gitblit v1.8.0