PUT /auth/me
更新当前认证用户的基本资料,支持修改用户名和MFA启用状态。参考:GDPR Art 16 (Right to Rectification)、OWASP ASVS V2.1。
身份认证 `bearerAuth` application/json
Request Body
Schema: dto.UpdateUserAuthRequest
| Field | Type | Required | Example | Constraints | Description |
mfa_enabled |
boolean |
No |
|
|
MFAEnabled |
username |
string |
No |
|
|
Username |
Referenced Schemas
dto.UpdateCurrentUserAuthResponse
| Field | Type | Required | Example | Constraints | Description |
code |
integer |
No |
|
|
|
message |
string |
No |
|
|
|
gitee_com_linmes_authms_base_dto.SimpleResponse
| Field | Type | Required | Example | Constraints | Description |
code |
integer |
No |
|
|
|
message |
string |
No |
|
|
|
timestamp |
string |
No |
|
|
|