# 獲取用戶標簽
- 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": "請輸入正確的用戶名重試"
}
~~~