Commit f16033ce by lichaogang

add classId parameter for save vision

parent 59706430
...@@ -26,6 +26,7 @@ API请求参数 ...@@ -26,6 +26,7 @@ API请求参数
rightEye {float} 右眼视力 3.8-5.3 rightEye {float} 右眼视力 3.8-5.3
distance {int} 3米或5米 distance {int} 3米或5米
testTime {int} testTime {int}
classId {int} 班级ID
## Response ## Response
...@@ -37,7 +38,7 @@ API请求参数 ...@@ -37,7 +38,7 @@ API请求参数
curl -X POST \ curl -X POST \
-H "X-DeviceInformation: 11%2f22%2f141" \ -H "X-DeviceInformation: 11%2f22%2f141" \
-H "X-Sign: mCNfxI/TgBt9K63KJ/cMcW2SgjJuQhmpiyUsSIVncfrI7XgukTBX8mqB5zZZ4Zmid2Elb0NbeUEmPanSMkWMENzLu0hbFQQhN9FaOsCNAK0wBmOgZ0PW0/jCqi7m4yC0wcxRlkbefob7nB76ri5j2wvB0Qi4Js8UPUl77eegs9A=" \ -H "X-Sign: mCNfxI/TgBt9K63KJ/cMcW2SgjJuQhmpiyUsSIVncfrI7XgukTBX8mqB5zZZ4Zmid2Elb0NbeUEmPanSMkWMENzLu0hbFQQhN9FaOsCNAK0wBmOgZ0PW0/jCqi7m4yC0wcxRlkbefob7nB76ri5j2wvB0Qi4Js8UPUl77eegs9A=" \
-d 'dataId=1DE5CAAA-DB46-419A-8162-EC853DAEA5CF&studentId=549&leftEye=1.0&rightEye=1.2&addType=0&distance=3&testTime=1560426091' \ -d 'dataId=1DE5CAAA-DB46-419A-8162-EC853DAEA5CF&studentId=549&leftEye=1.0&rightEye=1.2&addType=0&distance=3&testTime=1560426091&classId=111111' \
http://localhost:8080/v1/upload_vision_data http://localhost:8080/v1/upload_vision_data
**Output** **Output**
......
...@@ -20,7 +20,7 @@ API请求参数 ...@@ -20,7 +20,7 @@ API请求参数
### Form Parameters ### Form Parameters
[{"uuid":"1DE5CAAA-DB46-419A-8162-EC853DAEA5CF","studentId":"1111","leftEye":1.0,"rightEye":1.2,"testType":1,"distance":3,"testTime":1560426091}] [{"uuid":"1DE5CAAA-DB46-419A-8162-EC853DAEA5CF","studentId":"1111","leftEye":1.0,"rightEye":1.2,"testType":1,"distance":3,"testTime":1560426091,"classId":1111}]
## Response ## Response
......
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