文档
测试

根据USERID获取用户信息

GET
http://127.0.0.1/social/app/user/getById/3

请求头

参数名
类型
描述
必填
token
string
示例:4ba19086-c8a6-46c7-a08b-38f3c43fa327
可选

响应参数

参数名
类型
描述
必填
msg
string
接口状态码 200成功 500 系统错误 401 没有权限 -1 登录信息过期 后面接口多有该返回值
必填
code
integer
响应消息
必填
data
object
响应对象
必填
id
long
用户ID
必填
name
srtring
用户名称
必填
sex
string
用户性别(0男 1女 2未知)
必填
avatar
string
头像
必填
height
integer
身高
必填
bYear
integer
生日年
必填
bMonth
integer
生日月
必填
bDay
integer
生日天
必填
constellation
string
星座
必填
longitude
decimal
经度
必填
latitude
decimal
纬度
必填
username
string
用户名 登录名
必填
state
string
用户状态 1 正常 2禁用
必填
birthday
string
生日
必填
tags
array
标签集合
必填
tagId
long
标签ID
必填
state
string
标签状态 1public 2 protected 3 private
必填
tag
string
标签
必填
stature
string
身材
必填

说明 / 示例

{ "msg": "操作成功", "code": 200, "data": { "id": 2, "name": "测试用户2", "sex": "2", "avatar": "http://thirdwx.qlogo.cn/mmopen/hwr3HLmhaXwv2UnPWSt0rKG8ZW2FiahV0KujKiaDqGbLibr5K4nKOJqN9ScSAiaaPtrdNkqfmyW3Fbme8U6SgXFApA/132", "height": 172, "bYear": 1992, "bMonth": 8, "bDay": 31, "constellation": "处女座一", "longitude": 117.17397083256529, "latitude": 39.14588126659944, "username": "user2", "state": "1", "birthday": "1992-08-31 00:00:00", "tags": [ { "userId": null, "tagId": 1, "state": "1", "tag": "篮球动态", "groupId": null, "calc": null }, { "userId": null, "tagId": 2, "state": "1", "tag": "艺术动态", "groupId": null, "calc": null }, { "userId": null, "tagId": 4, "state": "2", "tag": "游泳", "groupId": null, "calc": null }, { "userId": null, "tagId": 5, "state": "2", "tag": "骑行", "groupId": null, "calc": null }, { "userId": null, "tagId": 6, "state": "3", "tag": "羽毛球", "groupId": null, "calc": null } ] } }