diff --git a/app/hdl/member_center/hdl_tag__management.go b/app/hdl/member_center/hdl_tag__management.go index c8f4352..5a5197d 100644 --- a/app/hdl/member_center/hdl_tag__management.go +++ b/app/hdl/member_center/hdl_tag__management.go @@ -145,7 +145,7 @@ func UpdateTag(c *gin.Context) { // @Param req body md.DeleteTagReq true "需要删除的标签 ID" // @Success 200 {int} "成功删除标签用户数" // @Failure 400 {object} md.Response "具体错误" -// @Router /api/memberCenter/tagManagement/deleteTag [post] +// @Router /api/memberCenter/tagManagement/deleteTag [delete] func DeleteTag(c *gin.Context) { var req *md.DeleteTagReq if err := c.ShouldBindJSON(&req); err != nil { diff --git a/docs/docs.go b/docs/docs.go index 793a35c..4dcd9d7 100644 --- a/docs/docs.go +++ b/docs/docs.go @@ -2572,7 +2572,7 @@ const docTemplate = `{ } }, "/api/memberCenter/tagManagement/deleteTag": { - "post": { + "delete": { "description": "标签管理(删除)", "consumes": [ "application/json" diff --git a/docs/swagger.json b/docs/swagger.json index 07d6782..488bea6 100644 --- a/docs/swagger.json +++ b/docs/swagger.json @@ -2565,7 +2565,7 @@ } }, "/api/memberCenter/tagManagement/deleteTag": { - "post": { + "delete": { "description": "标签管理(删除)", "consumes": [ "application/json" diff --git a/docs/swagger.yaml b/docs/swagger.yaml index c523355..4288e85 100644 --- a/docs/swagger.yaml +++ b/docs/swagger.yaml @@ -4262,7 +4262,7 @@ paths: tags: - 会员中心 /api/memberCenter/tagManagement/deleteTag: - post: + delete: consumes: - application/json description: 标签管理(删除)