# 获取当前登录用户信息

# 调用方式: GET

# 接口地址:

https://api.freelog.com/v2/users/current
1

# 返回说明:

返回值字段 字段类型 字段说明
userId int 用户ID
userName string 用户姓名
nickname string 用户昵称
email string email地址
tokenSn string 当前jwtToken的令牌编号
mobile string 手机号码
userRole int 用户现有角色 [详见附表]
createDate date 创建日期
updateDate date 数据最后更新日期
headImage string 用户头像URL
userType int 用户类型 0:初始账户 1:内测账户
userDetail object 用户详情
** sex int 性别 0: 未知 1:男 2:女
** birthday string 生日
** areaCode string 区域编码
** areaName string 区域名称
** intro string 简介

# 返回示例

{
	"ret": 0,
	"errCode": 0,
	"errcode": 0,
	"msg": "success",
	"data": {
		"email": "support@freelog.com",
		"mobile": "18923803593",
		"headImage": "https://image.freelog.com/headImage/50017",
		"userType": 0,
		"status": 0,
		"username": "yu",
		"userId": 50003,
		"tokenSn": "3374c98254b7491a9e57d08decde3e8f",
		"createDate": "2019-05-14T02:02:03.054Z",
		"userDetail": {
			"sex": 0,
			"birthday": "2000-09-12",
			"occupation": "软件工程师",
			"areaCode": "4401",
			"areaName": "广州市",
			"latestLoginDate": "2020-12-16T09:21:55.878Z",
			"latestLoginIp": "127.0.0.1",
			"statusChangeRemark": "",
			"intro": "",
			"createDate": "2020-12-14T06:46:59.631Z",
			"updateDate": "2021-09-22T09:14:20.653Z"
		}
	}
}
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30