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
0398250e
Commit
0398250e
authored
Aug 30, 2019
by
lichaogang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1.add linhu offical account api
parent
45ecff4b
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
328 additions
and
0 deletions
+328
-0
.DS_Store
idapidesign/.DS_Store
+0
-0
.DS_Store
idapidesign/v1/partner/.DS_Store
+0
-0
03_get_warning_notification.md
idapidesign/v1/partner/03_get_warning_notification.md
+65
-0
04_get_student_archive.md
idapidesign/v1/partner/04_get_student_archive.md
+63
-0
05_get_class_archive.md
idapidesign/v1/partner/05_get_class_archive.md
+81
-0
06_get_camp_analysis.md
idapidesign/v1/partner/06_get_camp_analysis.md
+56
-0
07_get_class_analysis.md
idapidesign/v1/partner/07_get_class_analysis.md
+63
-0
No files found.
idapidesign/.DS_Store
View file @
0398250e
No preview for this file type
idapidesign/v1/partner/.DS_Store
0 → 100644
View file @
0398250e
File added
idapidesign/v1/partner/03_get_warning_notification.md
0 → 100644
View file @
0398250e
# 预警提醒
## 修改记录
## 接口定义
/partner/get_warning_notification
GET
>视力预警提醒(vision_warning):上次正常,本次不良 或 本次任意眼下降0.2及以上
>BMI预警提醒(bmi_warning):BMI不在正常范围给予提醒
>提醒数据拉过一次就不会再有了,直到下次有新的预警数据产生
## Request
API请求参数
### Head
X-LoginType {String} partner
X-AppKey {String} appKey
X-Sign {String} aes(appKey+'_'+时间戳) 加密,密码是appSecret
## Response
### Example
**Command**
curl -X GET \
-H "X-LoginType: partner" \
-H "X-Sign: tna8CtdlphD7RcgwXYHWsQ==" \
https://t.api.test.iouou.cn/partner/get_warning_notification
**Output**
{
"vision_warning":[
{
"studentNumber":"123123123123",
"lastLeftEye":4.8,
"lastRightEye":4.8,
"lastTestTime":1566357456,
"thisLeftEye":4.8,
"thisRightEye":4.5,
"thisTestTime":1566357456,
"level":"轻度不良",
}],
"bmi_warning":[
{
"studentNumber":"123123123123",
"height":172,
"weight":70,
"bmi":24,
"level":"超重",
"testTime":1566357456,
}],
}
\ No newline at end of file
idapidesign/v1/partner/04_get_student_archive.md
0 → 100644
View file @
0398250e
# 获取学生视力档案
## 修改记录
## 接口定义
/partner/get_student_archive
GET
## Request
API请求参数
### Head
X-LoginType {String} partner
X-AppKey {String} appKey
X-Sign {String} aes(appKey+'_'+时间戳) 加密,密码是 appSecret,时间戳有效期是2个小时
### Form Parameters
studentNumber {string} 学生档案号
## Response
### Example
**Command**
curl -X GET \
-H "X-LoginType: partner" \
-H "X-Sign: tna8CtdlphD7RcgwXYHWsQ==" \
https://t.api.test.iouou.cn/partner/get_student_archive?studentNumber=1122222222
**Output**
{
"errno": 200,
"msg": "success",
"data": {
"vision":[
{
"leftEye":5.0,
"rightEye":5.1,
"level":"好视力",
"testTime":1566357456,
}
],
"heightWeight":[
{
"height":172,
"weight":70,
"bmi":24,
"level":"超重",
"testTime":1566357456,
}
],
}
}
\ No newline at end of file
idapidesign/v1/partner/05_get_class_archive.md
0 → 100644
View file @
0398250e
# 获取班级档案信息
## 修改记录
## 接口定义
/partner/get_class_archive
GET
## Request
API请求参数
### Head
X-LoginType {String} partner
X-AppKey {String} appKey
X-Sign {String} aes(appKey+'_'+时间戳) 加密,密码是 appSecret
### Form Parameters
phone {String} 班级老师电话
## Response
### Example
**Command**
curl -X GET \
-H "X-LoginType: partner" \
-H "X-Sign: tna8CtdlphD7RcgwXYHWsQ==" \
https://t.api.test.iouou.cn/partner/get_class_archive?classID=2017444444
**Output**
{
"errno": 200,
"msg": "success",
"data": [
{
studentNumber:"11112222",
"studentName":"小明",
"vision":{
"leftEye":5.0,
"rightEye":5.1,
"level":"好视力",
"testTime":1566357456,
},
"heightWeidht":{
"height":172,
"weight":70,
“bmi":24,
"level":"超重",
"testTime":1566357456,
},
},
{
studentNumber:"12333332",
"studentName":"小亮",
"vision":{
"leftEye":5.0,
"rightEye":5.1,
"level":"好视力",
"testTime":1566357456,
},
"heightWeidht":{
"height":172,
"weight":70,
“bmi":24,
"level":"超重",
"testTime":1566357456,
},
}
],
}
\ No newline at end of file
idapidesign/v1/partner/06_get_camp_analysis.md
0 → 100644
View file @
0398250e
# 获取学校统计分析信息
## 修改记录
## 接口定义
/partner/get_camp_analysis
GET
### Head
X-LoginType {String} partner
X-AppKey {String} appKey
X-Sign {String} aes(appKey+'_'+时间戳) 加密,密码是 appSecret
### Form Parameters
## Response
### Example
**Command**
curl -X GET \
-H "X-LoginType: partner" \
-H "X-Sign: tna8CtdlphD7RcgwXYHWsQ==" \
https://t.api.test.iouou.cn/partner/get_analysis
**Output**
{
"errno": 200,
"msg": "success",
"data": {
"totalCount":"340,
"vision":{
"testCount":300,
"thisBadVision":50,
"badVisionRate":16%,
"newBadVision":10,
"newBadRate":"10%",
},
"heightWeight":{
"testCount":300,
"standard":200,
"fat":100,
"standardRate":"66%",
"fatRate":"33%",
}
}
}
\ No newline at end of file
idapidesign/v1/partner/07_get_class_analysis.md
0 → 100644
View file @
0398250e
# 获取班级统计分析信息
## 修改记录
## 接口定义
/partner/get_class_analysis
GET
## Request
API请求参数
enrollmentYear {String} 年级入学年份
className {String} 班级名称,一班:1 二班:2
### Head
X-LoginType {String} partner
X-AppKey {String} appKey
X-Sign {String} aes(appKey+'_'+时间戳) 加密,密码是 appSecret
### Form Parameters
## Response
### Example
**Command**
curl -X GET \
-H "X-LoginType: partner" \
-H "X-Sign: tna8CtdlphD7RcgwXYHWsQ==" \
https://t.api.test.iouou.cn/partner/get_class_analysis?enrollmentYear=2016&className=2
**Output**
{
"errno": 200,
"msg": "success",
"data": {
"totalCount":"340,
"vision":{
"testCount":300,
"thisBadVision":50,
"badVisionRate":"16%",
"newBadVision":10,
"newBadRate":"10%",
},
"heightWeight":{
"testCount":300,
"standard":200,
"fat":100,
"standardRate":"66%",
"fatRate":"33%",
}
}
}
\ 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