/internal/identity/verify-password
验证用户密码是否正确,返回验证结果及用户ID
请求体
Schema: service-identity/internal/handler/dto.VerifyPasswordRequest
| 字段 | 类型 | 必填 | 示例 | 约束 | 描述 |
|---|---|---|---|---|---|
identifier |
string |
是 | Identifier | ||
password |
string |
是 | Password |
响应
| 状态 | 描述 | Schema |
|---|---|---|
| 200 | 验证成功 | service-identity/internal/handler/dto.VerifyPasswordResponse |
引用的 Schema
service-identity/internal/handler/dto.VerifyPasswordData
| 字段 | 类型 | 必填 | 示例 | 约束 | 描述 |
|---|---|---|---|---|---|
user_id |
string |
否 | |||
valid |
boolean |
否 |
service-identity/internal/handler/dto.VerifyPasswordResponse
| 字段 | 类型 | 必填 | 示例 | 约束 | 描述 |
|---|---|---|---|---|---|
code |
integer |
否 | |||
data |
service-identity/internal/handler/dto.VerifyPasswordData |
否 | |||
message |
string |
否 | |||
timestamp |
string |
否 |