getProfile - TimYi/FengHuang GitHub Wiki

请求URL

http://101.200.229.135:8080/api/user/profile

请求方式

GET  

请求参数

token:用户凭据

返回参数

user:用户信息{
username:用户名
verified:是否通过认证
cnname:中文名(昵称)
realName:真实姓名
ename:英文名
sex:性别,为字典类型 { 
    id
    name:性别名称
}
mobile:手机号码
intro:个人信息
email:邮箱
qqnum: qq号码,
qqid: qqid,
weixinnum: 微信号码,
weixinid: 微信id,
birthDay:生日,
bloodType:血型,字典类型 {
    id
    name
}
constellation:星座,字典类型,
avata: 头像,媒体类型 {
    id
    url
}
trade:职业,
address:地址,
expVal:经验值,
integra:积分,
regTime:注册时间,
regIp:注册ip,
loginTime:登录时间,
loginip:登录ip,
weiboid:微博id
infoComplete:用户信息是否完整
}
group:用户组信息{
     id: 用户组id,
     name: 用户组名称,
     minExp: 最低经验值,
     maxExp: 最高经验值,
     stars: 显示星数,
     color: 字典类型 { 
         id
         name
     }
}

返回示例

{
"result": {
    "group": {
        "id": "404040e64dd6fa3b014dd6fbeed00000",
        "name": "测试组",
        "minExp": 0,
        "maxExp": 10000,
        "stars": 5,
        "color": null
    },
    "user": {
        "id": "404040e64d89ca84014d89cb492d0000",
        "username": "18612444099",
        "verified": true,
        "cnname": null,
        "realName": null,
        "ename": null,
        "sex": null,
        "mobile": null,
        "intro": null,
        "email": null,
        "qqnum": null,
        "qqid": null,
        "weixinnum": null,
        "weixinid": null,
        "birthDay": null,
        "bloodType": null,
        "constellation": null,
        "avatar": null,
        "trade": null,
        "address": null,
        "expVal": 0,
        "integra": 0,
        "regTime": null,
        "regIp": null,
        "loginTime": "2015-06-09 14:41:57",
        "loginip": "0:0:0:0:0:0:0:1",
        "weiboid": null,
        "infoComplete": false
    }
},
"status": "OK"
}