diff --git a/app/hdl/member_center/hdl_user_management.go b/app/hdl/member_center/hdl_user_management.go index c94de23..08352f2 100644 --- a/app/hdl/member_center/hdl_user_management.go +++ b/app/hdl/member_center/hdl_user_management.go @@ -289,7 +289,7 @@ func UserManagementAddUser(c *gin.Context) { // @Param req body md.InviteCodeReq true "分页信息必填" // @Success 200 {string} "具体数据" // @Failure 400 {object} md.Response "具体错误" -// @Router /api/memberCenter/userManagement/addUser [post] +// @Router /api/memberCenter/userManagement/setCustomInviteCode [post] func UserManagementSetCustomInviteCode(c *gin.Context) { var req *md.InviteCodeReq if err := c.ShouldBindJSON(&req); err != nil { diff --git a/docs/docs.go b/docs/docs.go index e28cf8f..cbf29b4 100644 --- a/docs/docs.go +++ b/docs/docs.go @@ -6657,7 +6657,7 @@ const docTemplate = `{ }, "/api/memberCenter/userManagement/addUser": { "post": { - "description": "用户自定义邀请码修改", + "description": "用户添加", "consumes": [ "application/json" ], @@ -6667,7 +6667,7 @@ const docTemplate = `{ "tags": [ "会员中心" ], - "summary": "制度中心-会员中心-用户管理-用户自定义邀请码修改", + "summary": "制度中心-会员中心-用户管理-用户添加", "parameters": [ { "type": "string", @@ -6682,7 +6682,7 @@ const docTemplate = `{ "in": "body", "required": true, "schema": { - "$ref": "#/definitions/md.InviteCodeReq" + "$ref": "#/definitions/md.RegisterReq" } } ], @@ -6940,6 +6940,53 @@ const docTemplate = `{ } } }, + "/api/memberCenter/userManagement/setCustomInviteCode": { + "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.InviteCodeReq" + } + } + ], + "responses": { + "200": { + "description": "具体数据", + "schema": { + "type": "string" + } + }, + "400": { + "description": "具体错误", + "schema": { + "$ref": "#/definitions/md.Response" + } + } + } + } + }, "/api/memberCenter/userManagement/updateUserInfo": { "post": { "description": "用户信息管理(更新)", diff --git a/docs/swagger.json b/docs/swagger.json index 27b9b1c..717392f 100644 --- a/docs/swagger.json +++ b/docs/swagger.json @@ -6649,7 +6649,7 @@ }, "/api/memberCenter/userManagement/addUser": { "post": { - "description": "用户自定义邀请码修改", + "description": "用户添加", "consumes": [ "application/json" ], @@ -6659,7 +6659,7 @@ "tags": [ "会员中心" ], - "summary": "制度中心-会员中心-用户管理-用户自定义邀请码修改", + "summary": "制度中心-会员中心-用户管理-用户添加", "parameters": [ { "type": "string", @@ -6674,7 +6674,7 @@ "in": "body", "required": true, "schema": { - "$ref": "#/definitions/md.InviteCodeReq" + "$ref": "#/definitions/md.RegisterReq" } } ], @@ -6932,6 +6932,53 @@ } } }, + "/api/memberCenter/userManagement/setCustomInviteCode": { + "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.InviteCodeReq" + } + } + ], + "responses": { + "200": { + "description": "具体数据", + "schema": { + "type": "string" + } + }, + "400": { + "description": "具体错误", + "schema": { + "$ref": "#/definitions/md.Response" + } + } + } + } + }, "/api/memberCenter/userManagement/updateUserInfo": { "post": { "description": "用户信息管理(更新)", diff --git a/docs/swagger.yaml b/docs/swagger.yaml index 627e044..c4fba46 100644 --- a/docs/swagger.yaml +++ b/docs/swagger.yaml @@ -9912,7 +9912,7 @@ paths: post: consumes: - application/json - description: 用户自定义邀请码修改 + description: 用户添加 parameters: - description: 验证参数Bearer和token空格拼接 in: header @@ -9924,7 +9924,7 @@ paths: name: req required: true schema: - $ref: '#/definitions/md.InviteCodeReq' + $ref: '#/definitions/md.RegisterReq' produces: - application/json responses: @@ -9936,7 +9936,7 @@ paths: description: 具体错误 schema: $ref: '#/definitions/md.Response' - summary: 制度中心-会员中心-用户管理-用户自定义邀请码修改 + summary: 制度中心-会员中心-用户管理-用户添加 tags: - 会员中心 /api/memberCenter/userManagement/balanceDetail: @@ -10100,6 +10100,37 @@ paths: summary: 制度中心-会员中心-用户管理-会员明细(积分明细获取) tags: - 会员中心 + /api/memberCenter/userManagement/setCustomInviteCode: + 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.InviteCodeReq' + produces: + - application/json + responses: + "200": + description: 具体数据 + schema: + type: string + "400": + description: 具体错误 + schema: + $ref: '#/definitions/md.Response' + summary: 制度中心-会员中心-用户管理-用户自定义邀请码修改 + tags: + - 会员中心 /api/memberCenter/userManagement/updateUserInfo: post: consumes: