Commit 21248a9e by lichaogang

1.modify student visions struct 2. add sync visions

parent 6e42bc18
......@@ -50,7 +50,8 @@ API请求参数
"leftEye": "4.3",
"rightEye": "4.4",
"distance": 3,
"addTime": 1556006511
"addTime": 1556006511,
"createdAt": 1556006511,
}
],
"msg": "success"
......
# 获取学生信息
## 修改记录
## 接口定义
/v1/sync_visions
GET
## Request
API请求参数
### Head
X-DeviceInformation {String} 设备信息, 格式为: {osVersion}/{appVersion}/{deviceSN}
X-Sign {String} rsa(timestamp) 加密
### Form Parameters
lastSyncTime {String} 关键字,学号或姓名
limit {int} 默认:20
## Response
### Example
**Command**
curl -X GET \
-H "X-DeviceInformation: 11%2f22%2f47" \
-H "X-Sign: Q9IXIXtjTZRWnyV1hnUDMoqjRc+AbV0BR1LOakKcaY32RAiUyuJ8riB9pFSKduWU+BcaJtNBEUxTdz1tMZSj6nnysGLiFsfki2x15nMmQVhN4HJw1M2CWUeEriLBlLVQTbs2YksrOdu8hVVlnWJlWNED+jZcQd74vrDb9zCgASU=" \
http://localhost:8080/v1/sync_visions?lastSyncTime=1552012779
**Output**
{
"data": [
{
"vid": 17352,
"dataId": "",
"leftEye": 4,
"rightEye": 4,
"distance": 0,
"testTime": 1552012800,
"createTime": 1552012800
},
{
"vid": 17353,
"dataId": "",
"leftEye": 4,
"rightEye": 4,
"distance": 0,
"testTime": 1552012833,
"createTime": 1552012833
},
{
"vid": 17354,
"dataId": "",
"leftEye": 4,
"rightEye": 4.4,
"distance": 0,
"testTime": 1552012875,
"createTime": 1552012875
},
{
"vid": 17355,
"dataId": "",
"leftEye": 4,
"rightEye": 4,
"distance": 0,
"testTime": 1552012913,
"createTime": 1552012913
}
],
"errno": 200,
"msg": "success"
}
\ No newline at end of file
......@@ -50,7 +50,6 @@ API请求参数
"age": 0,
"grade": "1年级",
"class": "2班",
"updatedAt": "2019-04-23 16:01:51"
}
]
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment