获取个人资料
GET
/web/v1/system/profile JWT获取已认证用户的个人资料信息,包括账户详情、门户类型、状态及语言偏好。
鉴权
Auth Chain: WEB Chain — 需要
Authorization: Bearer <jwt>以下请求头由系统自动注入(前端无需处理):X-PORTAL-ACCESS-CODE(Nginx),X-Request-Id(Gateway)
请求参数
无需请求参数。
成功响应
成功 200
{
"success": true,
"code": "2000",
"message": "SUCCESS",
"data": {
"bizId": "ACC_SYS_001",
"institutionBizId": "INST_SYS_001",
"accountEmail": "admin@example.com",
"accountPhone": "+1234567890",
"accountName": "System Admin",
"accountRemark": null,
"accountPortal": {
"code": "SYSTEM",
"value": 10010101,
"label": "系统"
},
"accountStatus": {
"code": "ACTIVE",
"value": 10010202,
"label": "活跃"
},
"createdAt": "2026-01-15T08:00:00Z",
"updatedAt": "2026-03-20T14:30:00Z",
"defaultLanguage": "en",
"defaultTimezone": "America/New_York",
"defaultCountry": "US"
}
}响应字段
| 字段 | 类型 | 描述 |
|---|---|---|
bizId | string | 账户业务 ID |
institutionBizId | string | 机构业务 ID |
accountEmail | string | 账户邮箱 |
accountPhone | string | 账户手机号 |
accountName | string | 账户显示名称 |
accountRemark | string|null | 管理员备注(用户不可编辑) |
accountPortal | object | 门户类型枚举 {code, value, label} |
accountStatus | object | 账户状态枚举 {code, value, label} |
createdAt | string | ISO 8601 创建时间 |
updatedAt | string | ISO 8601 最后更新时间 |
defaultLanguage | string | 偏好语言代码(如 en、zh) |
defaultTimezone | string | 偏好时区(如 America/New_York) |
defaultCountry | string | 偏好国家代码(如 US) |
错误响应
未授权 401
{
"success": false,
"code": "4010",
"message": "Invalid or expired token"
}说明
- 返回已认证用户的完整个人资料。
- 枚举字段(
accountPortal、accountStatus)序列化为{code, value, label}对象。