Files
qwsy/月度/9月/汇海/体质测试数据上传接口文档.md
binghuai 296cdc5fc0 9.13
2025-09-13 12:12:31 +08:00

87 lines
2.1 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# 体质测试数据上传接口文档
数据上传接口说明:
```json
httpUrl: "http://test.yangge666.top:8898/physique-api/studentResult/deviceUploadResult"
method: "post",
contentType: "application/json",
requestBody:
{
"sno": "", //设备序列号,蓝牙/wifi的mac码,设备唯一标识,不可随意修改
"studentCode": "81100010000004230", //二维码中存储的信息//第一位系统编号、第二位到第三位年级编号、第四位到第七位学生编号、第八位到第九位次数第十位至最后为userId
"studentName": "", //学生姓名,二维码传值,第一位
"studentGender": "",//性别,二维码传值第三位
"systemType": "",//系统编号,二维码传值第四位
"phoneNum": "",//手机号,二维码传值第五位
"results": [{
"itemId": "", //1身高、2体重、3肺活量、-1BMI、450米跑、5坐位体前屈、6一分钟跳绳、7仰卧起坐、8:50米*8往返跑、9引体向上、10、1000米跑、11800米跑、13立定跳远
"itemName": "", //检测项目
"result": "", //检测成绩
},{
"itemId": "",
"itemName": "", //检测项目
"result": "", //检测成绩
}]
}
ResponseBody
{
"msg": "操作成功",
"code": 200,
}
{
"msg": "未查询到该学生。",
"code": 500
}
{
"msg": "设备未认证",
"code": 500
}
```
获取学生信息接口:
```json
httpUrl: "http://test.yangge666.top:8898/physique-api/studentResult/getStudentInfo"
method: "post",
contentType: "application/json"
requestBody:
{
"sno": "", //设备序列号,蓝牙/wifi的mac码,设备唯一标识,不可随意修改
"studentCode": "81100010000004230", //二维码中存储的信息
}
ResponseBody
{
"msg": "操作成功",
"code": 200,
"data": {
studentName: "XXX",
schoolName: "XXX",
className: "XXX年级XX班级"
}
}
{
"msg": "未查询到该学生或编码错误。",
"code": 500
}
{
"msg": "设备未认证",
"code": 500
}
```