# 获取用户标签
- 1.通过```uid```获取
~~~[api]
get:/tag/user/getbyuid
*string:uid=20180000#用户ID
<<<
success
{
"status": true,
"resdata": [
{
"tagid": "001",
"tagname": "计算机科学与技术"
},
{
"tagid": "002",
"tagname": "软件工程"
},
{
"tagid": "003",
"tagname": "电子商务"
}
]
}
<<<
error
{
"status": false,
"title": "用户不存在",
"message": "请输入正确的用户名重试"
}
~~~
- 2.通过```phone```获取
~~~[api]
get:/tag/user/getbyphone
*string:phone=18322442162#用户ID
<<<
success
{
"status": true,
"resdata": [
{
"tagid": "001",
"tagname": "计算机科学与技术"
},
{
"tagid": "002",
"tagname": "软件工程"
},
{
"tagid": "003",
"tagname": "电子商务"
}
]
}
<<<
error
{
"status": false,
"title": "用户不存在",
"message": "请输入正确的用户名重试"
}
~~~
- 3.通过```email```获取
~~~[api]
get:/tag/user/getbyemail
*string:email=xuefeng@kcalb.wang#用户ID
<<<
success
{
"status": true,
"resdata": [
{
"tagid": "001",
"tagname": "计算机科学与技术"
},
{
"tagid": "002",
"tagname": "软件工程"
},
{
"tagid": "003",
"tagname": "电子商务"
}
]
}
<<<
error
{
"status": false,
"title": "用户不存在",
"message": "请输入正确的用户名重试"
}
~~~