From ddf492d3955d60b3c774755021e40ca7acbe5eb5 Mon Sep 17 00:00:00 2001 From: huangjiajun <582604932@qq.com> Date: Wed, 11 Dec 2024 22:30:19 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=9A=E5=91=98=E5=8A=A0=E5=85=A5=E5=9B=9E?= =?UTF-8?q?=E6=94=B6=E7=AB=99=20=E4=BC=9A=E5=91=98=E5=88=A0=E9=99=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/docs.go | 208 +++++++++++++++++++++++++++++++++++++++++++++- docs/swagger.json | 203 +++++++++++++++++++++++++++++++++++++++++++- docs/swagger.yaml | 134 ++++++++++++++++++++++++++++- 3 files changed, 539 insertions(+), 6 deletions(-) diff --git a/docs/docs.go b/docs/docs.go index 21f0c18..db4402c 100644 --- a/docs/docs.go +++ b/docs/docs.go @@ -1,4 +1,5 @@ -// Package docs Code generated by swaggo/swag. DO NOT EDIT +// Code generated by swaggo/swag. DO NOT EDIT. + package docs import "github.com/swaggo/swag" @@ -1523,7 +1524,9 @@ const docTemplate = `{ "name": "req", "in": "body", "required": true, - "schema": {} + "schema": { + "type": "object" + } } ], "responses": { @@ -6723,6 +6726,194 @@ const docTemplate = `{ } } }, + "/api/memberCenter/userManagement/userDelete": { + "post": { + "description": "删除到回收站", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "会员中心" + ], + "summary": "会员中心-用户管理-永久删除", + "parameters": [ + { + "type": "string", + "description": "验证参数Bearer和token空格拼接", + "name": "Authorization", + "in": "header", + "required": true + }, + { + "description": "用户ID 必传", + "name": "req", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/md.UserManagementUserInfoReq" + } + } + ], + "responses": { + "200": { + "description": "修改数据行数", + "schema": { + "type": "int" + } + }, + "400": { + "description": "具体错误", + "schema": { + "$ref": "#/definitions/md.Response" + } + } + } + } + }, + "/api/memberCenter/userManagement/userRecycle": { + "post": { + "description": "删除到回收站", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "会员中心" + ], + "summary": "会员中心-用户管理-删除到回收站", + "parameters": [ + { + "type": "string", + "description": "验证参数Bearer和token空格拼接", + "name": "Authorization", + "in": "header", + "required": true + }, + { + "description": "用户ID 必传", + "name": "req", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/md.UserManagementUserInfoReq" + } + } + ], + "responses": { + "200": { + "description": "修改数据行数", + "schema": { + "type": "int" + } + }, + "400": { + "description": "具体错误", + "schema": { + "$ref": "#/definitions/md.Response" + } + } + } + } + }, + "/api/memberCenter/userManagement/userRecycleCancel": { + "post": { + "description": "恢复到会员列表", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "会员中心" + ], + "summary": "会员中心-用户管理-恢复到会员列表", + "parameters": [ + { + "type": "string", + "description": "验证参数Bearer和token空格拼接", + "name": "Authorization", + "in": "header", + "required": true + }, + { + "description": "用户ID 必传", + "name": "req", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/md.UserManagementUserInfoReq" + } + } + ], + "responses": { + "200": { + "description": "修改数据行数", + "schema": { + "type": "int" + } + }, + "400": { + "description": "具体错误", + "schema": { + "$ref": "#/definitions/md.Response" + } + } + } + } + }, + "/api/memberCenter/userManagement/userRecycleList": { + "post": { + "description": "回收站列表", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "会员中心" + ], + "summary": "会员中心-用户管理-回收站列表", + "parameters": [ + { + "type": "string", + "description": "验证参数Bearer和token空格拼接", + "name": "Authorization", + "in": "header", + "required": true + }, + { + "description": "分页信息必填", + "name": "req", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/md.UserManagementGetUserListReq" + } + } + ], + "responses": { + "200": { + "description": "具体数据", + "schema": { + "$ref": "#/definitions/md.UserManagementGetUserListResp" + } + }, + "400": { + "description": "具体错误", + "schema": { + "$ref": "#/definitions/md.Response" + } + } + } + } + }, "/api/notice/aliyunSms/file/phone": { "post": { "description": "短信推送记录-通知模板", @@ -15841,6 +16032,9 @@ const docTemplate = `{ "description": "是否实名 0.未实名,1.已实名", "type": "integer" }, + "is_recycle": { + "type": "string" + }, "level": { "description": "会员等级", "type": "integer" @@ -16033,6 +16227,14 @@ const docTemplate = `{ } } }, + "md.UserManagementUserInfoReq": { + "type": "object", + "properties": { + "uid": { + "type": "string" + } + } + }, "md.UserRealName": { "type": "object", "properties": { @@ -16609,8 +16811,6 @@ var SwaggerInfo = &swag.Spec{ Description: "管理后台接口文档", InfoInstanceName: "swagger", SwaggerTemplate: docTemplate, - LeftDelim: "{{", - RightDelim: "}}", } func init() { diff --git a/docs/swagger.json b/docs/swagger.json index 6f9cd6b..98e7379 100644 --- a/docs/swagger.json +++ b/docs/swagger.json @@ -1516,7 +1516,9 @@ "name": "req", "in": "body", "required": true, - "schema": {} + "schema": { + "type": "object" + } } ], "responses": { @@ -6716,6 +6718,194 @@ } } }, + "/api/memberCenter/userManagement/userDelete": { + "post": { + "description": "删除到回收站", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "会员中心" + ], + "summary": "会员中心-用户管理-永久删除", + "parameters": [ + { + "type": "string", + "description": "验证参数Bearer和token空格拼接", + "name": "Authorization", + "in": "header", + "required": true + }, + { + "description": "用户ID 必传", + "name": "req", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/md.UserManagementUserInfoReq" + } + } + ], + "responses": { + "200": { + "description": "修改数据行数", + "schema": { + "type": "int" + } + }, + "400": { + "description": "具体错误", + "schema": { + "$ref": "#/definitions/md.Response" + } + } + } + } + }, + "/api/memberCenter/userManagement/userRecycle": { + "post": { + "description": "删除到回收站", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "会员中心" + ], + "summary": "会员中心-用户管理-删除到回收站", + "parameters": [ + { + "type": "string", + "description": "验证参数Bearer和token空格拼接", + "name": "Authorization", + "in": "header", + "required": true + }, + { + "description": "用户ID 必传", + "name": "req", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/md.UserManagementUserInfoReq" + } + } + ], + "responses": { + "200": { + "description": "修改数据行数", + "schema": { + "type": "int" + } + }, + "400": { + "description": "具体错误", + "schema": { + "$ref": "#/definitions/md.Response" + } + } + } + } + }, + "/api/memberCenter/userManagement/userRecycleCancel": { + "post": { + "description": "恢复到会员列表", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "会员中心" + ], + "summary": "会员中心-用户管理-恢复到会员列表", + "parameters": [ + { + "type": "string", + "description": "验证参数Bearer和token空格拼接", + "name": "Authorization", + "in": "header", + "required": true + }, + { + "description": "用户ID 必传", + "name": "req", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/md.UserManagementUserInfoReq" + } + } + ], + "responses": { + "200": { + "description": "修改数据行数", + "schema": { + "type": "int" + } + }, + "400": { + "description": "具体错误", + "schema": { + "$ref": "#/definitions/md.Response" + } + } + } + } + }, + "/api/memberCenter/userManagement/userRecycleList": { + "post": { + "description": "回收站列表", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "会员中心" + ], + "summary": "会员中心-用户管理-回收站列表", + "parameters": [ + { + "type": "string", + "description": "验证参数Bearer和token空格拼接", + "name": "Authorization", + "in": "header", + "required": true + }, + { + "description": "分页信息必填", + "name": "req", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/md.UserManagementGetUserListReq" + } + } + ], + "responses": { + "200": { + "description": "具体数据", + "schema": { + "$ref": "#/definitions/md.UserManagementGetUserListResp" + } + }, + "400": { + "description": "具体错误", + "schema": { + "$ref": "#/definitions/md.Response" + } + } + } + } + }, "/api/notice/aliyunSms/file/phone": { "post": { "description": "短信推送记录-通知模板", @@ -15834,6 +16024,9 @@ "description": "是否实名 0.未实名,1.已实名", "type": "integer" }, + "is_recycle": { + "type": "string" + }, "level": { "description": "会员等级", "type": "integer" @@ -16026,6 +16219,14 @@ } } }, + "md.UserManagementUserInfoReq": { + "type": "object", + "properties": { + "uid": { + "type": "string" + } + } + }, "md.UserRealName": { "type": "object", "properties": { diff --git a/docs/swagger.yaml b/docs/swagger.yaml index 8718c3c..4d1a6d6 100644 --- a/docs/swagger.yaml +++ b/docs/swagger.yaml @@ -4760,6 +4760,8 @@ definitions: is_real_name: description: 是否实名 0.未实名,1.已实名 type: integer + is_recycle: + type: string level: description: 会员等级 type: integer @@ -4897,6 +4899,11 @@ definitions: description: 微信号 type: string type: object + md.UserManagementUserInfoReq: + properties: + uid: + type: string + type: object md.UserRealName: properties: create_time: @@ -6276,7 +6283,8 @@ paths: in: body name: req required: true - schema: {} + schema: + type: object produces: - application/json responses: @@ -9716,6 +9724,130 @@ paths: summary: 制度中心-会员中心-用户管理-会员明细概况(获取) tags: - 会员中心 + /api/memberCenter/userManagement/userDelete: + post: + consumes: + - application/json + description: 删除到回收站 + parameters: + - description: 验证参数Bearer和token空格拼接 + in: header + name: Authorization + required: true + type: string + - description: 用户ID 必传 + in: body + name: req + required: true + schema: + $ref: '#/definitions/md.UserManagementUserInfoReq' + produces: + - application/json + responses: + "200": + description: 修改数据行数 + schema: + type: int + "400": + description: 具体错误 + schema: + $ref: '#/definitions/md.Response' + summary: 会员中心-用户管理-永久删除 + tags: + - 会员中心 + /api/memberCenter/userManagement/userRecycle: + post: + consumes: + - application/json + description: 删除到回收站 + parameters: + - description: 验证参数Bearer和token空格拼接 + in: header + name: Authorization + required: true + type: string + - description: 用户ID 必传 + in: body + name: req + required: true + schema: + $ref: '#/definitions/md.UserManagementUserInfoReq' + produces: + - application/json + responses: + "200": + description: 修改数据行数 + schema: + type: int + "400": + description: 具体错误 + schema: + $ref: '#/definitions/md.Response' + summary: 会员中心-用户管理-删除到回收站 + tags: + - 会员中心 + /api/memberCenter/userManagement/userRecycleCancel: + post: + consumes: + - application/json + description: 恢复到会员列表 + parameters: + - description: 验证参数Bearer和token空格拼接 + in: header + name: Authorization + required: true + type: string + - description: 用户ID 必传 + in: body + name: req + required: true + schema: + $ref: '#/definitions/md.UserManagementUserInfoReq' + produces: + - application/json + responses: + "200": + description: 修改数据行数 + schema: + type: int + "400": + description: 具体错误 + schema: + $ref: '#/definitions/md.Response' + summary: 会员中心-用户管理-恢复到会员列表 + tags: + - 会员中心 + /api/memberCenter/userManagement/userRecycleList: + post: + consumes: + - application/json + description: 回收站列表 + parameters: + - description: 验证参数Bearer和token空格拼接 + in: header + name: Authorization + required: true + type: string + - description: 分页信息必填 + in: body + name: req + required: true + schema: + $ref: '#/definitions/md.UserManagementGetUserListReq' + produces: + - application/json + responses: + "200": + description: 具体数据 + schema: + $ref: '#/definitions/md.UserManagementGetUserListResp' + "400": + description: 具体错误 + schema: + $ref: '#/definitions/md.Response' + summary: 会员中心-用户管理-回收站列表 + tags: + - 会员中心 /api/notice/aliyunSms/file/phone: post: consumes: