## **獲取卡號接口信息 getStudentInfo**
**接口描述**
獲取系統內學生卡號
**無卡號的學生,不推薦返回,返回了也沒用**
**請求URL**
* [xxx.com/xxx](http://xxx.com/xxx)
**請求方式**
* GET
**請求參數**
| 參數名 | 類型 | 說明 |
| --- | --- | --- |
| deviceId | string | 設備序列號 |
**返回參數**
| 參數名 | 類型 | 說明 |
| --- | --- | --- |
| status| string | 0,成功,非0,失敗|
| cardStatus| string | 卡號狀態,0可用 |
| cardCode| string | 卡號 |
| id| string | 系統卡號id |
| studentId| string | 學生id 如果是老師,不傳此字段||
| type| string | 類型,1學生;2老師 |
| studentType| number| 學生1住校 2走讀 如果是老師,不傳此字段|
| faceUrl | string | 頭像地址 |
| classId| string | 班級id 如果是老師,不傳此字段| |
| name| string | 姓名 |
| relationship| string | 學生與家長的稱呼 |
| family| array | 家庭關系,如果是老師,可以不傳|
**返回示例**
~~~
{
"status":"0",
"msg":"獲取數據成功",
"serverTime":"1286676610",
"data":{
????????"id":"1",
????????"type":"1",
????????"cardStatus":"0",
????????"cardCode":"0632844048",
????????"studentId":"1",
????????"faceUrl":"abc.jpg",
????????"classId":"15",
????????"sex":"1",
????????"name":"張飛",
????????"family":[
????????????{
????????????????"id":"",
????????????????"cardCode":"",
????????????????"relationship":"",
????????????????"faceUrl":""
????????????}
????????]
????}
}
~~~