Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
aidapidesign
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
document
aidapidesign
Commits
bebe8c75
Commit
bebe8c75
authored
Oct 12, 2019
by
lichaogang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add left right offset, get student info
parent
2773b456
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
73 additions
and
2 deletions
+73
-2
.DS_Store
idapidesign/v1/.DS_Store
+0
-0
03_upload_vision_data.md
idapidesign/v1/app/03_upload_vision_data.md
+2
-0
04_batch_upload_vision_data.md
idapidesign/v1/app/04_batch_upload_vision_data.md
+1
-1
05_vision_terminal_active.md
idapidesign/v1/app/05_vision_terminal_active.md
+3
-0
10_get_student_list.md
idapidesign/v1/app/10_get_student_list.md
+1
-0
17_student_search.md
idapidesign/v1/app/17_student_search.md
+1
-0
20_upload_shop_vision_data.md
idapidesign/v1/app/20_upload_shop_vision_data.md
+3
-1
02_get_student_list.md
idapidesign/v1/partner/02_get_student_list.md
+1
-0
04_get_student_archive.md
idapidesign/v1/partner/04_get_student_archive.md
+7
-0
08_get_student_info.md
idapidesign/v1/partner/08_get_student_info.md
+54
-0
No files found.
idapidesign/v1/.DS_Store
0 → 100644
View file @
bebe8c75
File added
idapidesign/v1/app/03_upload_vision_data.md
View file @
bebe8c75
...
...
@@ -24,6 +24,8 @@ API请求参数
studentId {int} 学生ID
leftEye {float} 左眼视力 3.8-5.3
rightEye {float} 右眼视力 3.8-5.3
leftOffset {int} 错误个数
rightOffset {int} 错误个数
distance {int} 3米或5米
isNaked {int} 1:裸眼测试 0:带镜测试
testTime {int}
...
...
idapidesign/v1/app/04_batch_upload_vision_data.md
View file @
bebe8c75
...
...
@@ -32,7 +32,7 @@ API请求参数
-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":3.0,"rightEye":3.2,"
testType":0,"distance":3,"isNaked":1,"testTime":1561113665},{"dataId":"7a2adcb0-9408-11e9-ad5f-32001713d004","studentId":549,"leftEye":3.0,"rightEye":3.2,"testType":0,"distance":3,"isNaked":1,"testTime":1561113665},{"dataId":"7a2adcb0-9408-11e9-ad5f-32001713d002","studentId":549,"leftEye":3.0,"rightEye":3.2
,"testType":0,"distance":3,"isNaked":1,"testTime":1561113665}]' \
-d '[{"dataId":"7a2adcb0-9408-11e9-ad5f-32001713d001","studentId":549,"leftEye":3.0,"rightEye":3.2,"
leftOffset":1,"rightOffset","testType":0,"distance":3,"isNaked":1,"testTime":1561113665},{"dataId":"7a2adcb0-9408-11e9-ad5f-32001713d004","studentId":549,"leftOffset":1,"rightOffset",0,leftEye":3.0,"rightEye":3.2,"testType":0,"distance":3,"isNaked":1,"testTime":1561113665},{"dataId":"7a2adcb0-9408-11e9-ad5f-32001713d002","studentId":549,"leftEye":3.0,"rightEye":3.2,"leftOffset":1,"rightOffset"
,"testType":0,"distance":3,"isNaked":1,"testTime":1561113665}]' \
http://localhost:8080/v1/batch_upload_vision_data
**Output**
...
...
idapidesign/v1/app/05_vision_terminal_active.md
View file @
bebe8c75
...
...
@@ -29,6 +29,8 @@ X-ChannelId {String} 渠道ID
testType : ,1:学校模式、2:商城模式、3:海航模式 4:趋光模式
qrCodeCallbackUrl: 测试结果扫码后调用地址,如果为空就用默认的
### Example
...
...
@@ -54,6 +56,7 @@ testType : ,1:学校模式、2:商城模式、3:海航模式 4:趋光模式
"address": "",
"phone": "18910265201",
"printQrCodeStatus": 1,
"qrCodeCallbackUrl":"http://www.hahahaah.com",
"note1": "",
"note2": ""
},
...
...
idapidesign/v1/app/10_get_student_list.md
View file @
bebe8c75
...
...
@@ -48,6 +48,7 @@ API请求参数
"studentName": "郑笑莹",
"gender": 2,
"age": 0,
"isUseGlasses": 0,
"schoolId": 160,
"gradeId": 260,
"classId": 1439,
...
...
idapidesign/v1/app/17_student_search.md
View file @
bebe8c75
...
...
@@ -44,6 +44,7 @@ curl -X GET \
"studentName": "李仁杰",
"gender": 1,
"age": 17,
"isUseGlasses": 0,
"schoolId": 93,
"gradeId": 60,
"classId": 573,
...
...
idapidesign/v1/app/20_upload_shop_vision_data.md
View file @
bebe8c75
...
...
@@ -25,6 +25,8 @@ API请求参数
parentId {int} 家长ID
leftEye {float} 左眼视力 3.8-5.3
rightEye {float} 右眼视力 3.8-5.3
leftOffset {int} 错误个数
rightOffset {int} 错误个数
distance {int} 3米或5米
phone {String} 手机号
testTime {int}
...
...
@@ -39,7 +41,7 @@ API请求参数
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=1.0&rightEye=1.2&parentId=10&phone=1111&distance=3&testTime=1560426091' \
-d 'dataId=1DE5CAAA-DB46-419A-8162-EC853DAEA5CF&studentId=549&leftEye=1.0&rightEye=1.2&
leftOffset=1&rightOffset=0&
parentId=10&phone=1111&distance=3&testTime=1560426091' \
http://localhost:8080/v1/upload_shop_vision_data
**Output**
...
...
idapidesign/v1/partner/02_get_student_list.md
View file @
bebe8c75
# 获取学生信息
# 获取学生信息
## 修改记录
...
...
idapidesign/v1/partner/04_get_student_archive.md
View file @
bebe8c75
...
...
@@ -49,6 +49,13 @@ API请求参数
"testTime":1566357456,
}
],
"takeGlassesVision":[
{
"leftEye":5.0,
"rightEye":5.1,
"testTime":1566357456,
}
],
"heightWeight":[
{
"height":172,
...
...
idapidesign/v1/partner/08_get_student_info.md
0 → 100644
View file @
bebe8c75
# 获取学生信息
## 修改记录
## 接口定义
/partner/get_student_info
GET
## Request
API请求参数
### Head
X-DeviceInformation {String} 设备信息, 格式为: {deviceId}
X-LoginType {String} partner
X-AppKey {String} appKey
X-Sign {String} aes(时间戳) 加密,密码是 appSecret,时间戳有效期是2个小时
### Form Parameters
studentId {int}
## Response
### Example
**Command**
curl -X GET \
-H "X-LoginType: partner" \
-H "X-DeviceInformation: 1122" \
-H "X-AppKey: 9de1f320964a11e9ad5f32001713d000" \
-H "X-Sign: tna8CtdlphD7RcgwXYHWsQ==" \
https://t.api.test.iouou.cn/partner/get_student_list?limit=3&page=1
**Output**
{
"data": {
"studentId": 101123985365794816,
"studentName": "陈宇昕",
"gender": 1,
"class": "1900班",
"grade": "1年级",
"campName": "湘潭县第一中学"
},
"errno": 200,
"msg": "success"
}
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment