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
21248a9e
Commit
21248a9e
authored
Jun 25, 2019
by
lichaogang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1.modify student visions struct 2. add sync visions
parent
6e42bc18
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
84 additions
and
2 deletions
+84
-2
workspace.xml
.idea/workspace.xml
+0
-0
12_get_student_visions.md
idapidesign/v1/app/12_get_student_visions.md
+2
-1
18_sync_visions.md
idapidesign/v1/app/18_sync_visions.md
+82
-0
02_get_student_list.md
idapidesign/v1/partner/02_get_student_list.md
+0
-1
No files found.
.idea/workspace.xml
View file @
21248a9e
This diff is collapsed.
Click to expand it.
idapidesign/v1/app/12_get_student_visions.md
View file @
21248a9e
...
...
@@ -50,7 +50,8 @@ API请求参数
"leftEye": "4.3",
"rightEye": "4.4",
"distance": 3,
"addTime": 1556006511
"addTime": 1556006511,
"createdAt": 1556006511,
}
],
"msg": "success"
...
...
idapidesign/v1/app/18_sync_visions.md
0 → 100644
View file @
21248a9e
# 获取学生信息
## 修改记录
## 接口定义
/v1/sync_visions
GET
## Request
API请求参数
### Head
X-DeviceInformation {String} 设备信息, 格式为: {osVersion}/{appVersion}/{deviceSN}
X-Sign {String} rsa(timestamp) 加密
### Form Parameters
lastSyncTime {String} 关键字,学号或姓名
limit {int} 默认:20
## Response
### Example
**Command**
curl -X GET
\
-H "X-DeviceInformation: 11%2f22%2f47"
\
-H "X-Sign: Q9IXIXtjTZRWnyV1hnUDMoqjRc+AbV0BR1LOakKcaY32RAiUyuJ8riB9pFSKduWU+BcaJtNBEUxTdz1tMZSj6nnysGLiFsfki2x15nMmQVhN4HJw1M2CWUeEriLBlLVQTbs2YksrOdu8hVVlnWJlWNED+jZcQd74vrDb9zCgASU="
\
http://localhost:8080/v1/sync_visions?lastSyncTime=1552012779
**Output**
{
"data":
[
{
"vid": 17352,
"dataId": "",
"leftEye": 4,
"rightEye": 4,
"distance": 0,
"testTime": 1552012800,
"createTime": 1552012800
},
{
"vid": 17353,
"dataId": "",
"leftEye": 4,
"rightEye": 4,
"distance": 0,
"testTime": 1552012833,
"createTime": 1552012833
},
{
"vid": 17354,
"dataId": "",
"leftEye": 4,
"rightEye": 4.4,
"distance": 0,
"testTime": 1552012875,
"createTime": 1552012875
},
{
"vid": 17355,
"dataId": "",
"leftEye": 4,
"rightEye": 4,
"distance": 0,
"testTime": 1552012913,
"createTime": 1552012913
}
],
"errno": 200,
"msg": "success"
}
\ No newline at end of file
idapidesign/v1/partner/02_get_student_list.md
View file @
21248a9e
...
...
@@ -50,7 +50,6 @@ API请求参数
"age": 0,
"grade": "1年级",
"class": "2班",
"updatedAt": "2019-04-23 16:01:51"
}
]
}
...
...
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