feat: portal auth login and password reset
This commit is contained in:
@@ -3879,6 +3879,105 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"/v1/auth/password/reset": {
|
||||
"post": {
|
||||
"consumes": [
|
||||
"application/json"
|
||||
],
|
||||
"produces": [
|
||||
"application/json"
|
||||
],
|
||||
"tags": [
|
||||
"Web"
|
||||
],
|
||||
"summary": "找回密码-重置密码",
|
||||
"parameters": [
|
||||
{
|
||||
"description": "form",
|
||||
"name": "form",
|
||||
"in": "body",
|
||||
"required": true,
|
||||
"schema": {
|
||||
"$ref": "#/definitions/dto.PasswordResetForm"
|
||||
}
|
||||
}
|
||||
],
|
||||
"responses": {
|
||||
"200": {
|
||||
"description": "成功",
|
||||
"schema": {
|
||||
"$ref": "#/definitions/dto.PasswordResetResponse"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"/v1/auth/password/reset/sms": {
|
||||
"post": {
|
||||
"consumes": [
|
||||
"application/json"
|
||||
],
|
||||
"produces": [
|
||||
"application/json"
|
||||
],
|
||||
"tags": [
|
||||
"Web"
|
||||
],
|
||||
"summary": "找回密码-发送短信验证码",
|
||||
"parameters": [
|
||||
{
|
||||
"description": "form",
|
||||
"name": "form",
|
||||
"in": "body",
|
||||
"required": true,
|
||||
"schema": {
|
||||
"$ref": "#/definitions/dto.PasswordResetSendSMSForm"
|
||||
}
|
||||
}
|
||||
],
|
||||
"responses": {
|
||||
"200": {
|
||||
"description": "成功",
|
||||
"schema": {
|
||||
"$ref": "#/definitions/dto.PasswordResetSendSMSResponse"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"/v1/auth/password/reset/verify": {
|
||||
"post": {
|
||||
"consumes": [
|
||||
"application/json"
|
||||
],
|
||||
"produces": [
|
||||
"application/json"
|
||||
],
|
||||
"tags": [
|
||||
"Web"
|
||||
],
|
||||
"summary": "找回密码-校验验证码",
|
||||
"parameters": [
|
||||
{
|
||||
"description": "form",
|
||||
"name": "form",
|
||||
"in": "body",
|
||||
"required": true,
|
||||
"schema": {
|
||||
"$ref": "#/definitions/dto.PasswordResetVerifyForm"
|
||||
}
|
||||
}
|
||||
],
|
||||
"responses": {
|
||||
"200": {
|
||||
"description": "成功",
|
||||
"schema": {
|
||||
"$ref": "#/definitions/dto.PasswordResetVerifyResponse"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"/v1/auth/register": {
|
||||
"post": {
|
||||
"consumes": [
|
||||
@@ -4891,6 +4990,76 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"dto.PasswordResetForm": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"confirmPassword": {
|
||||
"description": "ConfirmPassword 确认新密码;必须与 Password 一致。",
|
||||
"type": "string"
|
||||
},
|
||||
"password": {
|
||||
"description": "Password 新密码(明文)。",
|
||||
"type": "string"
|
||||
},
|
||||
"resetToken": {
|
||||
"description": "ResetToken 重置令牌;由验证码校验接口返回。",
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
},
|
||||
"dto.PasswordResetResponse": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"ok": {
|
||||
"description": "Ok 是否成功。",
|
||||
"type": "boolean"
|
||||
}
|
||||
}
|
||||
},
|
||||
"dto.PasswordResetSendSMSForm": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"phone": {
|
||||
"description": "Phone 手机号;当前版本将其作为用户名使用(users.username)。",
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
},
|
||||
"dto.PasswordResetSendSMSResponse": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"code": {
|
||||
"description": "Code 验证码(预留:当前用于前端弹窗展示;正式接入短信后应移除/仅在开发环境返回)。",
|
||||
"type": "string"
|
||||
},
|
||||
"nextSendSeconds": {
|
||||
"description": "NextSendSeconds 下次可发送剩余秒数(用于前端 60s 倒计时)。",
|
||||
"type": "integer"
|
||||
}
|
||||
}
|
||||
},
|
||||
"dto.PasswordResetVerifyForm": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"code": {
|
||||
"description": "Code 短信验证码。",
|
||||
"type": "string"
|
||||
},
|
||||
"phone": {
|
||||
"description": "Phone 手机号。",
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
},
|
||||
"dto.PasswordResetVerifyResponse": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"resetToken": {
|
||||
"description": "ResetToken 重置令牌;验证码校验通过后,用该令牌提交新密码。",
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
},
|
||||
"dto.PurchaseContentForm": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
|
||||
Reference in New Issue
Block a user