/auth/me
停用当前登录用户的账户,需提供密码验证。账户将被软删除,数据保留可恢复。
请求体
Schema: service-identity/internal/handler/dto.DeactivateAccountRequest
| 字段 | 类型 | 必填 | 示例 | 约束 | 描述 |
|---|---|---|---|---|---|
password |
string |
否 | CurrentP@ssw0rd |
Password |
响应
| 状态 | 描述 | Schema |
|---|---|---|
| 200 | 账户已停用 | service-identity/internal/handler/dto.DeactivateAccountResponse |
引用的 Schema
service-identity/internal/handler/dto.DeactivateAccountResponse
| 字段 | 类型 | 必填 | 示例 | 约束 | 描述 |
|---|---|---|---|---|---|
code |
integer |
否 | |||
message |
string |
否 |