Commit 0398250e by lichaogang

1.add linhu offical account api

parent 45ecff4b
No preview for this file type
# 预警提醒
## 修改记录
## 接口定义
/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
# 获取学生视力档案
## 修改记录
## 接口定义
/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
# 获取班级档案信息
## 修改记录
## 接口定义
/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
# 获取学校统计分析信息
## 修改记录
## 接口定义
/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
# 获取班级统计分析信息
## 修改记录
## 接口定义
/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
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