GET /auth/me
返回当前认证用户的ID、用户名、邮箱、手机号及账户状态,支持从JWT直接解析用户身份。参考:RFC 7519 (JWT)、OWASP ASVS V2.1。
身份认证 `bearerAuth` application/json
Referenced Schemas
dto.UserInfo
用户基本信息
| Field | Type | Required | Example | Constraints | Description |
created_at |
string |
No |
|
|
Account creation time |
email |
string |
No |
|
|
Email |
id |
string |
No |
|
|
User ID |
must_change_password |
boolean |
No |
|
|
Password must be changed |
password_expires_in |
integer |
No |
|
|
Days until password expires |
password_warning |
string |
No |
|
|
Password warning: expiring/expired_grace/expired |
phone |
string |
No |
|
|
Phone |
status |
string |
No |
|
|
Status |
username |
string |
No |
|
|
Username |
dto.UserInfoResponseWrapper
| Field | Type | Required | Example | Constraints | Description |
code |
integer |
No |
|
|
|
data |
dto.UserInfo |
No |
|
|
|
message |
string |
No |
|
|
|
timestamp |
string |
No |
|
|
|
gitee_com_linmes_authms_base_dto.SimpleResponse
| Field | Type | Required | Example | Constraints | Description |
code |
integer |
No |
|
|
|
message |
string |
No |
|
|
|
timestamp |
string |
No |
|
|
|