GET
/system/user/profile/get管理后台用户·Profile-获取用户Profile · getUserProfile 推断名·方法名推断
平台与系统 / 用户·Profile
基本信息
- 接口状态前端在用
- 接口URLGET
https://dscp-dev.hn12301.net/manage-api/system/user/profile/get - 请求方式
GET - 暴露渠道管理后台 前缀
/manage-api - 名称来源方法名推断
- 调用方已确认在用 · 管理后台(1 个前端)
- 需求上下文
- 维护人 / 最后改动liuxu 2025-04-23
- 读写数据表
system_user_role、system_user反查该表全部接口 → - 控制器
com.jxxx.dscp.api.controller.system.UserProfileController#getUserProfile - 源码位置
jxxx-dscp/dscp-service-business/src/main/java/com/jxxx/dscp/api/controller/system/UserProfileController.java:54 - 判定依据
请求参数
Header 请求参数
| 参数名 | 参数值 | 是否必填 | 参数类型 | 描述说明 |
|---|---|---|---|---|
| 无(渠道统一鉴权头见《认证方式》) | ||||
Query 请求参数
| 参数名 | 参数值 | 是否必填 | 参数类型 | 描述说明 |
|---|---|---|---|---|
| 无 | ||||
路径参数及说明
| 参数名 | 参数值 | 是否必填 | 参数类型 | 描述说明 |
|---|---|---|---|---|
| 无 | ||||
Body 请求参数
| 参数名 | 参数值 | 是否必填 | 参数类型 | 描述说明 |
|---|---|---|---|---|
| 无 | ||||
认证方式
响应参数
| 参数名 | 参数值 | 是否必填 | 参数类型 | 描述说明 |
|---|---|---|---|---|
| id | … | 否 | Long | → system_user_role.id |
| username | … | 否 | String | → system_user.username |
| nickname | … | 否 | String | → system_user.nickname |
| … | 否 | String | → system_user.email | |
| mobile | … | 否 | String | → system_user.mobile |
| sex | … | 否 | Integer | → system_user.sex |
| avatar | … | 否 | String | → system_user.avatar |
| loginIp | … | 否 | String | → system_user.login_ip |
| loginDate | … | 否 | Date | → system_user.login_date |
| createTime | … | 否 | Date | |
| roles | … | 否 | List<UserRole> | 所属角色 |
| id | … | 否 | Long | 自增编号 → system_user_role.id |
| merchantId | … | 否 | Long | 商户id → system_user_role.merchant_id |
| shopId | … | 否 | Long | 商铺id → system_user_role.shop_id |
| userId | … | 否 | Long | 用户ID → system_user_role.user_id |
| roleId | … | 否 | Long | 角色ID → system_user_role.role_id |
| tenantId | … | 否 | Long | 租户编号 → system_user_role.tenant_id |
| isDeleted | … | 否 | Boolean | 是否删除 → system_user_role.is_deleted |
| createdTime | … | 否 | Date | 创建时间 → system_user_role.created_time |
| updatedTime | … | 否 | Date | 更新时间 → system_user_role.updated_time |
| dept | … | 否 | Dept | 所在部门 |
| id | … | 否 | Long | 部门id → system_user_role.id |
| merchantId | … | 否 | Long | 商户id → system_user_role.merchant_id |
| shopId | … | 否 | Long | 商铺id → system_user_role.shop_id |
| name | … | 否 | String | 部门名称 |
| parentId | … | 否 | Long | 父部门id |
| sort | … | 否 | Integer | 显示顺序 |
| leaderUserId | … | 否 | Long | 负责人 |
| phone | … | 否 | String | 联系电话 |
| … | 否 | String | 邮箱 → system_user.email | |
| tenantId | … | 否 | Long | 租户编号 → system_user_role.tenant_id |
| isEnabled | … | 否 | Boolean | 是否启用(1启用0停用) |
| isDeleted | … | 否 | Boolean | 是否删除 → system_user_role.is_deleted |
| createdBy | … | 否 | Long | 创建人 → system_user.created_by |
| createdTime | … | 否 | Date | 创建时间 → system_user_role.created_time |
| updatedBy | … | 否 | Long | 更新人 → system_user.updated_by |
| updatedTime | … | 否 | Date | 更新时间 → system_user_role.updated_time |
| posts | … | 否 | List<UserPost> | 所属岗位数组 |
| id | … | 否 | Long | id → system_user_role.id |
| userId | … | 否 | Long | 用户ID → system_user_role.user_id |
| postId | … | 否 | Long | 岗位ID |
| merchantId | … | 否 | Long | 商户id → system_user_role.merchant_id |
| shopId | … | 否 | Long | 商铺id → system_user_role.shop_id |
| tenantId | … | 否 | Long | 租户编号 → system_user_role.tenant_id |
| isDeleted | … | 否 | Boolean | 是否删除 → system_user_role.is_deleted |
| createdTime | … | 否 | Date | 创建时间 → system_user_role.created_time |
| updatedTime | … | 否 | Date | 更新时间 → system_user_role.updated_time |
| socialUsers | … | 否 | List<SocialUser> | 社交用户数组 |
| type | … | 否 | Integer | |
| openid | … | 否 | String |
响应示例
成功响应示例
{
"errcode": 0,
"errmsg": "",
"data": {
"id": "1",
"username": "\"string\"",
"nickname": "\"string\"",
"email": "\"string\"",
"mobile": "\"string\"",
"sex": "1",
"avatar": "\"string\"",
"loginIp": "\"string\"",
"loginDate": "\"2026-01-01 00:00:00\"",
"createTime": "\"2026-01-01 00:00:00\"",
"roles": "[]"
}
}附录 · 实现细节
调用链 / 数据表 / 调用点证据 / 源码注释 / 逻辑摘要
涉及数据表:system_user_role、system_user 反查全部引用接口 →
- UserProfileController#getUserProfile
- SessionUserService#getSessionUser
- UserRoleService#queryList(UserRoleServiceImpl)
- UserRoleMapper#queryList
- BeanUtils.map → UserProfileResponse
其它依赖:SessionUserService.getSessionUser
逻辑摘要:查询详情(userService.get);查询详情(sessionService.getSessionUser);列表查询(userRoleService.queryList);入参与返回值经 BeanUtils 做对象/分页映射
旧站环境备注:pro:(仓库 .env.pro 指向 uat;生产域名未确认,此处沿用 uat 主机示意)
调用点证据
dscp-html-manage/src/api/system/user/profile.ts:55管理后台 · request