Commit 73caa761 by lichaogang

1.add test_type:4 diopter model 2.add upload diopter data 3.upload cornea data

parent 507b53ba
...@@ -27,6 +27,7 @@ X-ChannelId {String} 渠道ID ...@@ -27,6 +27,7 @@ X-ChannelId {String} 渠道ID
## Response ## Response
testType : ,1:学校模式、2:商城模式、3:海航模式 4:趋光模式
### Example ### Example
......
# 上传单条数据
## 修改历史
## 接口定义
/v1/upload_diopter_data
POST
## Request
API请求参数
### Head
X-DeviceInformation {String} 设备信息, 格式为: {osVersion}/{appVersion}/{equipmentId}/{activeAccount}
X-Sign {String} rsa(timestamp) 加密
### Form Parameters
dataId {String} 唯一ID ,由Android端生成
studentId {int} 学生ID
leftEye {String} <REFL0162.012.00-03.00+--02.50-01.00170>
rightEye {String} <REFR0162.012.00-03.00+--02.50-01.00170>
testTime {int}
classId {int} 班级ID
## Response
### Example
**Command**
curl -X POST \
-H "X-DeviceInformation: 11%2f22%2f141" \
-H "X-Sign: mCNfxI/TgBt9K63KJ/cMcW2SgjJuQhmpiyUsSIVncfrI7XgukTBX8mqB5zZZ4Zmid2Elb0NbeUEmPanSMkWMENzLu0hbFQQhN9FaOsCNAK0wBmOgZ0PW0/jCqi7m4yC0wcxRlkbefob7nB76ri5j2wvB0Qi4Js8UPUl77eegs9A=" \
-d 'dataId=1DE5CAAA-DB46-419A-8162-EC853DAEA5CF&studentId=549&leftEye=<REFL0162.012.00-03.00+--02.50-01.00170>&rightEye=<REFR0162.012.00-03.00+--02.50-01.00170>&testTime=1560426091&classId=111111' \
http://localhost:8080/v1/upload_diopter_data
**Output**
{
"errno": 200,
"msg": "success"
}
\ No newline at end of file
# 上传批量数据
## 修改历史
## 接口定义
/v1/batch_upload_diopter_data
POST
## Request
API请求参数
### Head
X-DeviceInformation {String} 设备信息, 格式为: {osVersion}/{appVersion}/{equipmentId}/{activeAccount}
X-Sign {String} rsa(timestamp) 加密
### Form Parameters
[{"uuid":"1DE5CAAA-DB46-419A-8162-EC853DAEA5CF","studentId":"1111","leftEye":"<REFL0162.012.00-03.00+--02.50-01.00170>","rightEye":"<REFR0162.012.00-03.00+--02.50-01.00170>","testType":1,"distance":3,"testTime":1560426091,"classId":1111}]
## Response
### Example
**Command**
curl -X POST \
-H "X-DeviceInformation: 11%2f22%2f96" \
-H "X-Sign: qM2Ep2wGF5xCJMerRVxtzciuWi8xrjgLkhNpvV2zNLF/Rv/Rf9FF3XwsIF/BOHFPEtwbmGNX57fkdzTEriDTZaCJ566PbNy7eklZ21GdAXSsrpY6Yl6YfRqSFCJbzatB0tCAKkMkHaizJ+5g05PklCo6833E9x8VZZ8g1mf4oXg=" \
-H "Content-Type: application/json" \
-d '[{"dataId":"7a2adcb0-9408-11e9-ad5f-32001713d001","studentId":549,"leftEye":"<REFL0162.012.00-03.00+--02.50-01.00170>","rightEye":"<REFR0162.012.00-03.00+--02.50-01.00170>","testTime":1561113665},{"dataId":"7a2adcb0-9408-11e9-ad5f-32001713d004","studentId":549,"leftEye":"<REFL0162.012.00-03.00+--02.50-01.00170>","rightEye":"<REFR0162.012.00-03.00+--02.50-01.00170>","testTime":1561113665},{"dataId":"7a2adcb0-9408-11e9-ad5f-32001713d002","studentId":549,"leftEye":"<REFL0162.012.00-03.00+--02.50-01.00170>","rightEye":"<REFR0162.012.00-03.00+--02.50-01.00170>","testTime":1561113665}]' \
http://localhost:8080/v1/batch_upload_diopter_data
**Output**
{
"errno": 200,
"data": {
"ed7d9a9c-93c5-11e9-ad5f-32001713d000",
"ed7daee2-93c5-11e9-ad5f-32001713d000",
}
"msg": "success"
}
\ No newline at end of file
# 上传单条数据
## 修改历史
## 接口定义
/v1/upload_cornea_data
POST
## Request
API请求参数
### Head
X-DeviceInformation {String} 设备信息, 格式为: {osVersion}/{appVersion}/{equipmentId}/{activeAccount}
X-Sign {String} rsa(timestamp) 加密
### Form Parameters
dataId {String} 唯一ID ,由Android端生成
studentId {int} 学生ID
leftEye {String} <REFL0162.010.00-00.20MM+07.90+07.70170>
rightEye {String} <REFR0162.010.00-00.20MM+07.90+07.70170>
testTime {int}
classId {int} 班级ID
## Response
### Example
**Command**
curl -X POST \
-H "X-DeviceInformation: 11%2f22%2f141" \
-H "X-Sign: mCNfxI/TgBt9K63KJ/cMcW2SgjJuQhmpiyUsSIVncfrI7XgukTBX8mqB5zZZ4Zmid2Elb0NbeUEmPanSMkWMENzLu0hbFQQhN9FaOsCNAK0wBmOgZ0PW0/jCqi7m4yC0wcxRlkbefob7nB76ri5j2wvB0Qi4Js8UPUl77eegs9A=" \
-d 'dataId=1DE5CAAA-DB46-419A-8162-EC853DAEA5CF&studentId=549&leftEye=<REFL0162.010.00-00.20MM+07.90+07.70170>&rightEye=<REFR0162.010.00-00.20MM+07.90+07.70170>&testTime=1560426091&classId=111111' \
http://localhost:8080/v1/upload_cornea_data
**Output**
{
"errno": 200,
"msg": "success"
}
\ No newline at end of file
# 上传批量数据
## 修改历史
## 接口定义
/v1/batch_upload_diopter_data
POST
## Request
API请求参数
### Head
X-DeviceInformation {String} 设备信息, 格式为: {osVersion}/{appVersion}/{equipmentId}/{activeAccount}
X-Sign {String} rsa(timestamp) 加密
### Form Parameters
[{"uuid":"1DE5CAAA-DB46-419A-8162-EC853DAEA5CF","studentId":"1111","leftEye":"<REFL0162.010.00-00.20MM+07.90+07.70170>","rightEye":"<REFR0162.010.00-00.20MM+07.90+07.70170>","testTime":1560426091,"classId":1111}]
## Response
### Example
**Command**
curl -X POST \
-H "X-DeviceInformation: 11%2f22%2f96" \
-H "X-Sign: qM2Ep2wGF5xCJMerRVxtzciuWi8xrjgLkhNpvV2zNLF/Rv/Rf9FF3XwsIF/BOHFPEtwbmGNX57fkdzTEriDTZaCJ566PbNy7eklZ21GdAXSsrpY6Yl6YfRqSFCJbzatB0tCAKkMkHaizJ+5g05PklCo6833E9x8VZZ8g1mf4oXg=" \
-H "Content-Type: application/json" \
-d '[{"dataId":"7a2adcb0-9408-11e9-ad5f-32001713d001","studentId":549,"leftEye":"<REFL0162.010.00-00.20MM+07.90+07.70170>","rightEye":"<REFR0162.010.00-00.20MM+07.90+07.70170>","testTime":1561113665},{"dataId":"7a2adcb0-9408-11e9-ad5f-32001713d004","studentId":549,"leftEye":"<REFL0162.010.00-00.20MM+07.90+07.70170>","rightEye":"<REFR0162.010.00-00.20MM+07.90+07.70170>","testTime":1561113665},{"dataId":"7a2adcb0-9408-11e9-ad5f-32001713d002","studentId":549,"leftEye":"<REFL0162.010.00-00.20MM+07.90+07.70170>","rightEye":"<REFR0162.010.00-00.20MM+07.90+07.70170>","testTime":1561113665}]' \
http://localhost:8080/v1/batch_upload_diopter_data
**Output**
{
"errno": 200,
"data": {
"ed7d9a9c-93c5-11e9-ad5f-32001713d000",
"ed7daee2-93c5-11e9-ad5f-32001713d000",
}
"msg": "success"
}
\ No newline at end of file
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