From 55ed56ba5312ed7e3790a6c1ee8bbd2199687322 Mon Sep 17 00:00:00 2001 From: shenjiachi Date: Tue, 19 Nov 2024 20:21:50 +0800 Subject: [PATCH] update --- app/hdl/member_center/hdl_tag__management.go | 2 +- docs/docs.go | 2 +- docs/swagger.json | 2 +- docs/swagger.yaml | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) 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: 标签管理(删除)