[关闭]
@sewise-dev 2017-12-04T08:32:04.000000Z 字数 55123 阅读 785

微录播后台接口文档(v2.0.0)

微录播 后台 App


https://www.zybuluo.com/mdeditor#

更新历史

编号 版本 说明 作者 日期
1 v2.0 1.修订文档 paki 2017-02-08

目录

注意

以下前端接口userinfo字段变为user字段,存在http-cookies中
app接口的userinfo放在http body中

#1.获取用户信息

1.用户登入

后面所有的接口都需要拿用户信息进行请求,下面用userinfo来代表获取到的信息

接口地址

/login

HTTP Content-Type / 请求方式

application/x-www-form-urlencoded
POST

请求参数
参数 必选 类型 说明
RequestBody
user string 用户名
pass string 用户密码
HTTP 响应状态

200

返回字段 字段类型 说明
data json 返回的用户信息
接口示例

Request
curl -d "user=admin&pass=123456" 192.168.1.239/login
Response
{"result":true, "model":"m3x", "id":1,"username":"admin","nickname":"绠$.?.,"email":"admin@weilubo","admin":1,"role":1,"phone":"-", "remark":"-", "session":"b3rnddeonmot8qifv73vebpqbfj9cio25174afdcksgdhpnpvk8g===="}

2.教师端

2.1 我的微课列表

接口地址

/swl/all

HTTP Content-Type / 请求方式

application/json
GET

请求参数

RequestBody

参数 必选 类型 说明
page string 页数,默认为1
size string 一页显示数量,默认为15
stime string 创建开始时间,默认为空
etime string 创建结束时间,默认为空
title string 题目,默认为空
teacher string 创建者id,默认为空
userinfo json 用户登陆信息

userinfo

参数 必选 类型 说明
username string 用户登陆信息
role integer 用户角色,1为老师,2为学生
HTTP 响应状态

200

返回字段 字段类型 说明
success Booleans 返回状态码
data Array 返回结果
pages Integer 返回总页数
接口示例

Request
curl -X GET -H "Content-Type:application/json" -d {"userinfo":'{"username":"xxx","role":1}',"session":"xxx"} http://192.168.1.237/swl/all
Response
{"success":true,"data":[{"swlid":"95d78585-3314-4ad7-b44d-000bf133faec","creator_uid":"admin","creator_nickname":"管理员","title":"简介简介","duration":599.099,"image":"/video/photo/?path=storage/swlsource/video/39/f4c03753.mp4","is_open_topic":1,"video_url":"","poster":"","summary":"","require":"","create_time":"2017-02-08 16:39:54","knowledge":[{"klgid":"d5484376-85e4-4ed7-9434-b1ee92dd1fc1","title":"2","element_title":"","duration":23,"start_time":0,"end_time":23,"creator_uid":"admin","creator_nickname":"管理员","swpid":"918d03cf-3284-4da1-84ae-651529906173","swptitle":"","video_url":"storage/swlsource/video/39/f4c03753.mp4","video_name":"98888.mp4","assist_id":"","assist_url":"storage/swlsource/pdf/5b/3686c2f8.pdf","assist_name":"3686c2f8.pdf","create_time":"2017-02-08 16:39:09","image":"storage/swlsource/pdf/5b/3686c2f8/1.png","hide":"","quote_count":"","topic_ids":"","knowledge_element":[{"elgid":"6d7ab477-a543-4f6b-a179-76918bead5cc","title":"2","creator_uid":"admin","creator_nickname":"管理员","pdf_url":"","pdf_json":{"id":0,"page":1,"sTime":0,"title":"2","type":"1","eTime":23,"duration":23},"vtt_json":[],"topic_json":[],"timeline_json":"","event_timeline_json":"","duration":23,"start_time":0,"end_time":23,"create_time":"2017-02-08 16:39:09"],"_id":148}],"question_total":0,"klg_total":9,"_id":11}]}],"pages":1}

2.2 知识点列表

接口地址

/knowledge/all

HTTP Content-Type / 请求方式

application/json
GET

请求参数
参数 必选 类型 说明
RequestBody
page string 页数,默认为1
size string 一页显示数量,默认为15
stime string 创建开始时间,默认为空
etime string 创建结束时间,默认为空
title string 题目,默认为空
teacher string 创建者id,默认为空
userinfo json 用户登陆信息
参数 必选 类型 说明
userinfo
username string 用户登陆信息
role integer 用户角色,1为老师,2为学生
HTTP 响应状态

200

返回字段 字段类型 说明
success Booleans 返回状态码
data Array 返回结果
pages Integer 返回总页数
接口示例

Request
curl -X POST -H "Content-Type:application/json" -d {"userinfo":{username:xxx,role:1},"xxx":"xxx"} http://192.168.1.239/knowledge/all
Response
{"success":true,"data":[{"klgid":"b6c2d703-4046-478a-a9da-330e7f6af144","title":"","element_title":"","duration":101,"start_time":172,"end_time":273,"creator_uid":"admin","creator_nickname":"管理员","swpid":"918d03cf-3284-4da1-84ae-651529906173","swptitle":"","video_url":"storage/swlsource/video/39/f4c03753.mp4","video_name":"98888.mp4","assist_id":"","assist_url":"storage/swlsource/pdf/5b/3686c2f8.pdf","assist_name":"3686c2f8.pdf","create_time":"2017-02-08 16:39:09","image":"storage/swlsource/pdf/5b/3686c2f8/4.png","hide":"","quote_count":"","topic_ids":"","knowledge_element":[{"elgid":"1a634112-915f-406d-ba9e-2d6243888e96","title":"","creator_uid":"admin","creator_nickname":"管理员","pdf_url":"","pdf_json":{"page":4,"sTime":172,"eTime":273,"id":3,"type":"1","title":"","duration":101},"vtt_json":[],"topic_json":[],"timeline_json":"","event_timeline_json":"","duration":101,"start_time":172,"end_time":273,"create_time":"2017-02-08 16:39:09"}]}],"pages":1}

2.3 问答

接口功能

查询题库列表

接口地址

/question

HTTP Content-Type

application/json

HTTP 请求方式

GET

请求参数
参数 必选 类型 说明
page int 查询页数,默认为1
size int 一页显示数量,默认为15
q String 题目名称模糊搜索
tid String 老师名称
stime String 开始时间,格式为2017-02-06 10:02:23
etime String 结束时间,有开始时间的时候必传
HTTP 响应状态

200

返回字段 字段类型 说明
success boolean 任务结果
error string 错误信息,如错误,返回,否则没有
data array 数据集合

其他响应状态描述请参照:【备注】-【错误码】

接口示例

Request
url: http://ip:port/question?page=""&size=""&q=""

Response
成功:{"success":true,"data":[{},{},...]}
失败:{"success":false,"error":"XXX"}

接口地址

/weikeAPI/getquestions

HTTP Content-Type / 请求方式

application/json
POST

请求参数
参数 必选 类型 说明
RequestBody
q string 搜索的关键词
HTTP 响应状态

200

返回字段 字段类型 说明
success Booleans 返回状态码
list Array 返回结果
接口示例

Request
curl -X POST -H "Content-Type:application/json" -d {"userinfo":userinfo,"q":"微录播系列"} http://192.168.1.239/weikeAPI/getquestions
Response
{"success":true,"list":[{"question":"这是微录播系列教学视频?","answer":[{"content":"是","rightAnswer":true},{"content":"不是","rightAnswer":false}],"type":"single","id":"zyg1_1482549713716_4","showTime":9,"pdfDataID":1,"page":2,"rightJumpTime":9,"errorJumpTime":0,"swpid":"admin_1","_id":5}]}

2.4 微课播放

2.4.1 学生学习进度统计
接口地址

/statistics/user/study/:swlid/:uid

HTTP Content-Type / 请求方式

application/json
get

请求参数
参数 必选 类型 说明
RequestBody
swlid string 课程的id值
uid string 用户的id值
HTTP 响应状态

200

返回字段 字段类型 说明
status Booleans 返回状态码
data Array 返回结果
接口示例

Request
curl -X POST -H "Content-Type:application/json" -d {"userinfo":userinfo,"swlid":924} http://192.168.1.239/statistics/user/study/:swlid/:uid
Response
{"result":{"share":["0%","10%","20%","30%","40%","50%","60%","70%","80%","90%","100%"],"list":[[{"id":"fc3ef100-dc95-11e6-b872-dd7574160f84","precent":"0.2","create_time":"1484644742173","round":1,"data":{"correct_precent":"0.40","point_precent":"0.60","study_time":60}},{"id":"347903d0-dc96-11e6-9ea6-f192bce90860","precent":"0.4","create_time":"1484644836497","round":1,"data":{"correct_precent":"0.40","point_precent":"0.60","study_time":"120"}},{"id":"74406080-dc96-11e6-b605-ef0a6ba51af0","precent":"0.4","create_time":"1484644943508","round":1,"data":{"correct_precent":"0.40","point_precent":"0.60","study_time":"180"}}]]}}

2.4.2 错题排行
接口地址

/statistics/wrongranking/:swlid

HTTP Content-Type / 请求方式

application/json
get

请求参数
参数 必选 类型 说明
RequestBody
swlid string 课程的id值
HTTP 响应状态

200

返回字段 字段类型 说明
result Array 返回结果
接口示例

Request
curl -X get -H "Content-Type:application/json" -d {"userinfo":userinfo,"swlid":53} http://192.168.1.239/statistics/wrongranking/:swlid
Response
{"result":[{"creator_uid":"admin","type":"single","question":"1+2=?","option":[5,10],"answer":[{"content":"2","rightAnswer":"false"},{"content":"3","rightAnswer":"true"}],"create_time":"2017-02-07 10:46:46","topic_id":"554770e7-881b-400b-9333-f1574965d847","_id":53,"id":"554770e7-881b-400b-9333-f1574965d847","uuid":"554770e7-881b-400b-9333-f1574965d847","question_id":"554770e7-881b-400b-9333-f1574965d847","showTime":6,"pdfDataID":1,"page":1,"rightJumpTime":6,"errorJumpTime":0,"answerindex":[1],"rate":{"rate":"0.33","wrong":5,"total":15},"optionsindex":[5,10]}]}

2.4.3 知识点统计
接口地址

/statistics/points/:swlid

HTTP Content-Type / 请求方式

application/json
get

请求参数
参数 必选 类型 说明
RequestBody
swlid string 课程的id值
HTTP 响应状态

200

返回字段 字段类型 说明
status Booleans 返回状态码
result Array 返回结果
接口示例

Request
curl -X get -H "Content-Type:application/json" -d {"userinfo":userinfo,"swlid":53} http://192.168.1.239/statistics/points/:swlid
Response
{"success":true,"data":[{"id":0,"page":1,"sTime":0,"title":"开始","duration":0,"swpid":"pakit_53","_id":8879,"wipeInfo":{"totalnum":1,"wipenum":0,"wipepercent":"0"}},{"page":2,"sTime":10,"id":1,"title":"录制微课成为生活的一部分","duration":10,"swpid":"pakit_53","_id":8880,"wrongRateInfo":{"answernum":1,"wrongnum":1,"wrongpercent":"100"},"wipeInfo":{"totalnum":1,"wipenum":0,"wipepercent":"0"result":[{"title":"微录播是视智云推出的一款微型录制与播出系统2","duration":"4500","start_time":"50","end_time":"4500","creator_uid":"5112","creator_nickname":"张老师","swptitle":"微录播","video_url":"http://localhost:3000/image/1.mp4","video_name":"微课制作","assist_id":"e4f25901-d7e1-11e6-b8a7-b720db0f6d97","assist_url":"http://localhost:3000/image/1.pdf","assist_slice_number":"30","create_time":"2017-01-16 10:37:26","image":"http://localhost:3000/image/1.png","hide":"1","quote_count":"0","swlid":"e4f25901-d7e1-11e6-b8a7-b720db0f6d97","wrong":{"count":0,"total":3},"clear":{"count":0,"total":3}},{"title":"微录播是视智云推出的一款微型录制与播出系统","duration":"4500","start_time":"50","end_time":"4500","creator_uid":"5112","creator_nickname":"张老师","swptitle":"微录播","video_url":"http://localhost:3000/image/1.mp4","video_name":"微课制作","assist_id":"e4f25901-d7e1-11e6-b8a7-b720db0f6d97","assist_url":"http://localhost:3000/image/1.pdf","assist_slice_number":"30","create_time":"2017-01-16 10:37:26","image":"http://localhost:3000/image/1.png","hide":"1","quote_count":"0","swlid":"e4f25901-d7e1-11e6-b8a7-b720db0f6d97","wrong":{"count":9,"total":9},"clear":{"count":0,"total":3}}]}

2.5 微课制作

2.5.1 保存swp工程
接口地址

/swp/save

HTTP Content-Type / 请求方式

application/json
POST

请求参数
参数 必选 类型 说明
RequestBody
title string swp工程的名称
name string 视频的名称
fullname string 视频的路径
pdf_json json pdf数据串
id int 编号id
sTime double pdf的显示时间
page double 知识元在pdf中的位置,第几页
title string pdf的标题
pdf_file string pdf文件路径
type int 知识元是否组成知识点。0:否;1:单个知识元组成知识点;2多个知识元组成知识点
Knowledge_info json {id:知识点的id,title:知识点的题目}
vtt_json json 字幕数据串
id int 编号id
sTime double 字幕的显示时间
eTime double 字幕的消失时间
content string 字幕的内容
topic_json json 题目的数据串
question str 题目内容
answer array 答案信息
type string 题目类型。single:单选;multi:多选
id int 题目在题库中的id
showTime int 题目显示的时间
pdfDataID int 题目对应的pdfid
rightJumpTime int 答对跳转时间
errorJumpTime int 答错跳转时间
HTTP 响应状态

200

返回字段 字段类型 说明
success Booleans 返回状态码
接口示例

Request
curl -X POST -H "Content-Type:application/json" -d {"userinfo":userinfo,"swpid":924} http://192.168.1.239/weikeAPI/getStuPro
Response
{"success":true}

2.6 获取老师年级科目属性

2.6.1 老师制作的知识点绑定的年级科目属性
接口地址

/swl/knowledge/:creator_uid

HTTP Content-Type / 请求方式

application/json
GET

请求参数
参数 必选 类型 说明
RequestBody
creator_uid string 老师id
HTTP 响应状态

200

返回字段 字段类型 说明
success Booleans 返回状态码
result json 结果
接口示例

Request
curl -X GET -H "Content-Type:application/json" -d {"id":creator_uid,"sn":sn} http://192.168.1.239/swl/knowledge/jzmjzm
Response
{
"success": true,
"gradeList": [
{
"key": "1",
"value": "一年级"
}
],
"subjectList": [
{
"key": "101",
"value": "语文"
}
]
}

2.6.2 老师制作的课程绑定的年级科目属性
接口地址

/swl/swl/:creator_uid

HTTP Content-Type / 请求方式

application/json
GET

请求参数
参数 必选 类型 说明
RequestBody
creator_uid string 老师id
sn string 微录播sn
HTTP 响应状态

200

返回字段 字段类型 说明
success Booleans 返回状态码
result json 结果
接口示例

Request
curl -X GET -H "Content-Type:application/json" -d {"id":creator_uid,"sn":sn} http://192.168.1.239/swl/swl/jzmjzm
Response
{
"success": true,
"gradeList": [
{
"key": "1",
"value": "一年级"
}
],
"subjectList": [
{
"key": "101",
"value": "语文"
}
]
}

3.学生端

3.1 获取教师列表

接口地址

/swl/share/fromList

HTTP Content-Type / 请求方式

application/json
GET

请求参数
参数 必选 类型 说明
RequestBody
HTTP 响应状态

200

返回字段 字段类型 说明
success Booleans 返回状态码
data Array 返回结果

data信息解析

返回字段 字段类型 说明
username string 教师的username
nickname string 教师的昵称

请求接口用的都是username,nickname没有用到,nickname只是用来前端展示,一般是中文

接口示例

Request
curl -X GET -H "Content-Type:application/json" -d {"userinfo":userinfo} http://192.168.1.239/swl/share/fromList
Response
{"success":true,"data":[{"username":"admin","nickname":"管理员"},{"username":"pakit","nickname":"pakit"},{"username":"teacher2","nickname":"老师2号"},{"username":"kakaxi","nickname":"卡卡西"},{"username":"50","nickname":"吴老师"},{"username":"60","nickname":"严老师"},{"username":"70","nickname":"赵老师"},{"username":"yuwenlaoshi","nickname":"语文老师"}]}

3.2 我的微课

接口地址

/swl/all

HTTP Content-Type / 请求方式

application/json
GET

请求参数
参数 必选 类型 说明
RequestBody
page string 页数,默认为1
size string 一页显示数量,默认为15
stime string 创建开始时间,默认为空
etime string 创建结束时间,默认为空
title string 题目,默认为空
teacher string 创建者id,默认为空
userinfo json 用户登陆信息
参数 必选 类型 说明
userinfo
username string 用户登陆信息
role integer 用户角色,1为老师,2为学生
HTTP 响应状态

200

返回字段 字段类型 说明
success Booleans 返回状态码
data Array 返回结果
pages Integer 返回总页数
接口示例

Request
curl -X GET -H "Content-Type:application/json" -d {"userinfo":{username:xxx,role:2},"q":"k"} http://192.168.1.237/swl/all
Response
{"success":true,"data":[{"swlid":"95d78585-3314-4ad7-b44d-000bf133faec","creator_uid":"admin","creator_nickname":"管理员","title":"简介简介","duration":599.099,"image":"/video/photo/?path=storage/swlsource/video/39/f4c03753.mp4","is_open_topic":1,"video_url":"","poster":"","summary":"","require":"","create_time":"2017-02-08 16:39:54","knowledge":[{"klgid":"d5484376-85e4-4ed7-9434-b1ee92dd1fc1","title":"2","element_title":"","duration":23,"start_time":0,"end_time":23,"creator_uid":"admin","creator_nickname":"管理员","swpid":"918d03cf-3284-4da1-84ae-651529906173","swptitle":"","video_url":"storage/swlsource/video/39/f4c03753.mp4","video_name":"98888.mp4","assist_id":"","assist_url":"storage/swlsource/pdf/5b/3686c2f8.pdf","assist_name":"3686c2f8.pdf","create_time":"2017-02-08 16:39:09","image":"storage/swlsource/pdf/5b/3686c2f8/1.png","hide":"","quote_count":"","topic_ids":"","knowledge_element":[{"elgid":"6d7ab477-a543-4f6b-a179-76918bead5cc","title":"2","creator_uid":"admin","creator_nickname":"管理员","pdf_url":"","pdf_json":{"id":0,"page":1,"sTime":0,"title":"2","type":"1","eTime":23,"duration":23},"vtt_json":[],"topic_json":[],"timeline_json":"","event_timeline_json":"","duration":23,"start_time":0,"end_time":23,"create_time":"2017-02-08 16:39:09"],"_id":148}],"question_total":0,"klg_total":9,"_id":11}]}],"pages":1}

3.3 知识点

接口地址

/knowledge/all

HTTP Content-Type / 请求方式

application/json
GET

请求参数
参数 必选 类型 说明
RequestBody
page string 页数,默认为1
size string 一页显示数量,默认为15
stime string 创建开始时间,默认为空
etime string 创建结束时间,默认为空
title string 题目,默认为空
teacher string 创建者id,默认为空
userinfo json 用户登陆信息
参数 必选 类型 说明
userinfo
username string 用户登陆信息
role integer 用户角色,1为老师,2为学生
HTTP 响应状态

200

返回字段 字段类型 说明
success Booleans 返回状态码
data Array 返回结果
pages Integer 返回总页数
接口示例

Request
curl -X GET -H "Content-Type:application/json" -d {"userinfo":userinfo,"q":"zhisdhain"} http://192.168.1.239/knowledge/all
Response
{"success":true,"data":[{"klgid":"b6c2d703-4046-478a-a9da-330e7f6af144","title":"","element_title":"","duration":101,"start_time":172,"end_time":273,"creator_uid":"admin","creator_nickname":"管理员","swpid":"918d03cf-3284-4da1-84ae-651529906173","swptitle":"","video_url":"storage/swlsource/video/39/f4c03753.mp4","video_name":"98888.mp4","assist_id":"","assist_url":"storage/swlsource/pdf/5b/3686c2f8.pdf","assist_name":"3686c2f8.pdf","create_time":"2017-02-08 16:39:09","image":"storage/swlsource/pdf/5b/3686c2f8/4.png","hide":"","quote_count":"","topic_ids":"","knowledge_element":[{"elgid":"1a634112-915f-406d-ba9e-2d6243888e96","title":"","creator_uid":"admin","creator_nickname":"管理员","pdf_url":"","pdf_json":{"page":4,"sTime":172,"eTime":273,"id":3,"type":"1","title":"","duration":101},"vtt_json":[],"topic_json":[],"timeline_json":"","event_timeline_json":"","duration":101,"start_time":172,"end_time":273,"create_time":"2017-02-08 16:39:09"}]}],"pages":1}

3.5 我的错题

接口地址

/statistics/student/wrong

HTTP Content-Type / 请求方式

application/json
get

请求参数
参数 必选 类型 说明
RequestBody
creator_uid string 用户id 必需
swlid string 课件id 非必需
teacher_id string 老师id 非必需,用于需要根据老师id查询时
time string 时间id 非必需,用于需要根据老师id查询时
HTTP 响应状态

200

返回字段 字段类型 说明
status int 返回状态码
data Array 返回结果

data信息解析

返回字段 字段类型 说明
answer_id string 问题id
creator_uid string 学生id
teacher_id string 老师id
swlid string 课件id
klgid string 知识点id
topic_id string 问题id
question string 问题标题
create_time string 答题时间
round string 答题轮次
option Array 问题选项
answer Array 用户回答id
right_answer Array 正确答案id
is_right string 是否答对
接口示例

Request
curl -X get -H "Content-Type:application/json" -d {"userinfo":userinfo,"q":"问题"} http://192.168.1.239/statistics/student/wrong
Response
{"status":200,"data":[{"creator_uid":"5112","klgid":"e4f25901-d7e1-11e6-b8a7-b720db0f6d97","swlid":"e4f25901-d7e1-11e6-b8a7-b720db0f6d97","topic_id":"e4f25901-d7e1-11e6-b8a7-b720db0f6d97","question":"nodejs底层使用什么语言实现的?","option":["javascript","c","java","go"],"answer":"2","right_answer":"1","is_right":"0","create_time":"2017-01-16 10:37:39"},{"creator_uid":"5112","klgid":"e4f25901-d7e1-11e6-b8a7-b720db0f6d97","swlid":"e4f25901-d7e1-11e6-b8a7-b720db0f6d97","topic_id":"e4f25901-d7e1-11e6-b8a7-b720db0f6d97","question":"nodejs底层使用什么语言实现的?","option":["javascript","c","java","go"],"answer":"2","right_answer":"1","is_right":"0","create_time":"2017-01-16 10:37:42"},{"creator_uid":"5112","klgid":"e4f25901-d7e1-11e6-b8a7-b720db0f6d97","swlid":"e4f25901-d7e1-11e6-b8a7-b720db0f6d97","topic_id":"e4f25901-d7e1-11e6-b8a7-b720db0f6d97","question":"nodejs底层使用什么语言实现的?","option":["javascript","c","java","go"],"answer":"2","right_answer":"1","is_right":"0","create_time":"2017-01-16 10:37:43"}]}

3.6 我的错题关联知识点功能

3.6.1 我的错题关联的知识点(单个微课)

接口地址

/statistics/student/wrongkonwledge

HTTP Content-Type / 请求方式

application/json
get

请求参数
参数 必选 类型 说明
swlid string 课程id 必需
klgid string 问题关联的知识点id 必需
HTTP 响应状态

200

返回字段 字段类型 说明
result int 返回状态码

result

返回字段 字段类型 说明
title json 知识点名称
video_url json 视频路径
image json 截图
duration json 时长
swptitle json 课程名称
creator_nickname json 讲师
接口示例

Request
curl -X get -H "Content-Type:application/json" http://statistics.luobo.com/statistics/student/wrongkonwledge/:swlid/:klgid
Response
{"result":[{"klgid":"58059f12-e8a1-4f9e-94fe-7d99714e683d","title":"默认标题","element_title":"","duration":8,"start_time":0,"end_time":8,"creator_uid":"lilaoshi020701","creator_nickname":"李老师020701-修改信息","swpid":"85db4bd5-30f1-4070-9409-4279bf88c648","swptitle":"","video_url":"storage/swlsource/video/19/b42fb269.mp4","video_name":"黄老师课程-三合一.mp4","assist_id":"","assist_url":"storage/swlsource/pdf/26/3e9c1005.pdf","assist_name":"3e9c1005.pdf","create_time":"2035-12-23 05:41:11","image":"storage/swlsource/pdf/26/3e9c1005/1.png","hide":"","quote_count":"","topic_ids":"dfb3cd97-5477-4182-b6d3-cdf064e29b3d","knowledge_element":[{"elgid":"9c348f41-a791-4497-bcb6-813b32b46e36","title":"默认标题","creator_uid":"lilaoshi020701","creator_nickname":"李老师020701-修改信息","pdf_url":"","pdf_json":{"id":0,"page":1,"sTime":0,"title":"默认标题","type":"1","eTime":8,"duration":8},"vtt_json":[{"sTime":4,"eTime":6,"content":"范德萨范德萨发大厦的地方"}],"topic_json":[{"creator_uid":"admin","type":"multiple","question":"黄老师课程-三合一的问答,PPT01","option":["D","D","C","D"],"answer":[{"content":"D","rightAnswer":"true"},{"content":"D","rightAnswer":"true"},{"content":"C","rightAnswer":"false"},{"content":"D","rightAnswer":"true"}],"create_time":"2035-12-23 04:54:07","topic_id":"dfb3cd97-5477-4182-b6d3-cdf064e29b3d","_id":136,"id":"dfb3cd97-5477-4182-b6d3-cdf064e29b3d","uuid":"dfb3cd97-5477-4182-b6d3-cdf064e29b3d","question_id":"dfb3cd97-5477-4182-b6d3-cdf064e29b3d","showTime":8,"pdfDataID":1,"page":2,"rightJumpTime":8,"errorJumpTime":0,"answerindex":[0,1,3]}],"timeline_json":"","event_timeline_json":"","duration":8,"start_time":0,"end_time":8,"create_time":"2035-12-23 05:41:11","klgid":"58059f12-e8a1-4f9e-94fe-7d99714e683d","swpid":"85db4bd5-30f1-4070-9409-4279bf88c648"}],"_id":2289}],"swltitle":"制作微课删除了知识点"}

3.6.2 我的错题关联的知识点(全部微课)

接口地址

/statistics/student/allwrongkonwledge

HTTP Content-Type / 请求方式

application/json
get

请求参数
参数 必选 类型 说明
swlid string 课程id 必需
topic_id string 问题id 必需
HTTP 响应状态

200

返回字段 字段类型 说明
result int 返回状态码

result

返回字段 字段类型 说明
title json 知识点名称
video_url json 视频路径
image json 截图
duration json 时长
swptitle json 课程名称
creator_nickname json 讲师
接口示例

Request
curl -X get -H "Content-Type:application/json" http://statistics.luobo.com/statistics/student/allwrongkonwledge/:swlid/:topic_id
Response
{"result":[{"klgid":"58059f12-e8a1-4f9e-94fe-7d99714e683d","title":"默认标题","element_title":"","duration":8,"start_time":0,"end_time":8,"creator_uid":"lilaoshi020701","creator_nickname":"李老师020701-修改信息","swpid":"85db4bd5-30f1-4070-9409-4279bf88c648","swptitle":"","video_url":"storage/swlsource/video/19/b42fb269.mp4","video_name":"黄老师课程-三合一.mp4","assist_id":"","assist_url":"storage/swlsource/pdf/26/3e9c1005.pdf","assist_name":"3e9c1005.pdf","create_time":"2035-12-23 05:41:11","image":"storage/swlsource/pdf/26/3e9c1005/1.png","hide":"","quote_count":"","topic_ids":"dfb3cd97-5477-4182-b6d3-cdf064e29b3d","knowledge_element":[{"elgid":"9c348f41-a791-4497-bcb6-813b32b46e36","title":"默认标题","creator_uid":"lilaoshi020701","creator_nickname":"李老师020701-修改信息","pdf_url":"","pdf_json":{"id":0,"page":1,"sTime":0,"title":"默认标题","type":"1","eTime":8,"duration":8},"vtt_json":[{"sTime":4,"eTime":6,"content":"范德萨范德萨发大厦的地方"}],"topic_json":[{"creator_uid":"admin","type":"multiple","question":"黄老师课程-三合一的问答,PPT01","option":["D","D","C","D"],"answer":[{"content":"D","rightAnswer":"true"},{"content":"D","rightAnswer":"true"},{"content":"C","rightAnswer":"false"},{"content":"D","rightAnswer":"true"}],"create_time":"2035-12-23 04:54:07","topic_id":"dfb3cd97-5477-4182-b6d3-cdf064e29b3d","_id":136,"id":"dfb3cd97-5477-4182-b6d3-cdf064e29b3d","uuid":"dfb3cd97-5477-4182-b6d3-cdf064e29b3d","question_id":"dfb3cd97-5477-4182-b6d3-cdf064e29b3d","showTime":8,"pdfDataID":1,"page":2,"rightJumpTime":8,"errorJumpTime":0,"answerindex":[0,1,3]}],"timeline_json":"","event_timeline_json":"","duration":8,"start_time":0,"end_time":8,"create_time":"2035-12-23 05:41:11","klgid":"58059f12-e8a1-4f9e-94fe-7d99714e683d","swpid":"85db4bd5-30f1-4070-9409-4279bf88c648"}],"_id":2289}],"swltitle":"制作微课删除了知识点"}

3.7 通过swlid获取课程

接口地址

/swl

HTTP Content-Type / 请求方式

application/json
GET

请求参数
参数 必选 类型 说明
RequestPath
swlid string 课程id
HTTP 响应状态

200

返回字段 字段类型 说明
success Booleans 返回状态码
data Json 返回结果
接口示例

Request
curl -X GET -H "Content-Type:application/json" http://192.168.1.239/swl/swlid
Response
{"success":true,"data":{"page":3,"sTime":3,"id":2,"title":"阿萨德群","duration":2,"swpid":"pakit_8","_id":7609,"swpinfo":{"id":8,"name":"pa221.mp4","fullname":"storage/public/lubocam/pakit/pa221.mp4","type":"video","size":34657748,"time":1482990012,"phototime":134,"encrypt":0,"zip":1,"start_time":"0000-00-00 00:00:00","end_time":null,"duration":134,"camname":null,"sf1":null,"sf2":null,"sf3":null,"userid":"pakit","nickname":"pakit","swpid":"pakit_8","introduction":"","questionsnum":1,"knowlegenum":3,"_id":63}},{"page":2,"sTime":2,"id":1,"duration":2,"swpid":"pakit_10","_id":7668,"swpinfo":{"id":10,"name":"pa23.mp4","fullname":"storage/public/lubocam/pakit/pa23.mp4","type":"video","size":34657680,"time":1482990066,"phototime":134,"encrypt":0,"zip":1,"start_time":"0000-00-00 00:00:00","end_time":null,"duration":134,"camname":null,"sf1":null,"sf2":null,"sf3":null,"userid":"pakit","nickname":"pakit","swpid":"pakit_10","introduction":"","questionsnum":2,"knowlegenum":2,"_id":64}}}

3.8 撕书功能

3.8.1 保存撕书记录

接口地址

/wipe/add

HTTP Content-Type / 请求方式

application/json
POST

请求参数
参数 必选 类型 说明
RequestBody
wipe_id string 唯一识别码uuid,撕书id
create_time string 创建时间
username string 创建者id
swlid string 课件id
klgid string 知识点id
HTTP 响应状态

200

返回字段 字段类型 说明
success boolean 保存结果
error string 错误信息,如错误,返回,否则没有
接口示例

Request
curl -X POST -H "Content-Type:application/json" -d {"swlid":"123321",klgid:"123321"}
url: http://ip:port/wipe/add
Response
成功:{"result":success}
失败:{"result":failure}

3.8.2 删除撕书记录

接口地址

/wipe/

HTTP Content-Type / 请求方式

application/json
DELETE

请求参数
参数 必选 类型 说明
RequestBody
wipe_id string 唯一识别码uuid,撕书id
create_time string 创建时间
username string 创建者id
swlid string 课件id
klgid string 知识点id
HTTP 响应状态

200

返回字段 字段类型 说明
success boolean 删除记录结果
error string 错误信息,如错误,返回,否则没有
接口示例

Request
curl -X DELETE -H "Content-Type:application/json" -d {"swlid":"123321",klgid:"123321"}
url: http://ip:port/wipe/delete
Response
{"success":true}

3.8.3 获取撕书记录

接口地址

/wipe/{swlid}

HTTP Content-Type / 请求方式

GET

请求参数
参数 必选 类型 说明
RequestBody
username string 创建者id
swlid string 课件id
HTTP 响应状态

200

返回字段 字段类型 说明
success boolean 任务结果
result json 返回结果

result信息解析

返回字段 字段类型 说明
summary json 汇总信息
list array 返回列表

summary信息解析

返回字段 字段类型 说明
count int 结果数
time int 时间长度

list信息解析

返回字段 字段类型 说明
klgid string 知识点id
title string 名称
element_title string
duration int 长度
start_time int 开始时间
end_time int 结束时间
creator_uid string 作者
creator_nickname string 作者名称
swpid string 课件id
swptitle string 课件名称
video_url string 视频路径
video_name string 视频名称
assist_name string pdf名
create_time string 创建时间
image string 截图
hide int 是否隐藏
quote int 引用数
topic_ids string 答题id
knowledge_element json 知识元
knowledge_element 知识元
字段 类型 非空 注释
elgid string 唯一识别码uuid,知识元id
title stirng 知识元名称
creator_uid string 创建者id
creator_nickname stirng 创建者
pdf_url stirng pdf url
pdf_json json pdf数据串
id int 编号id
page int pdf页数
sTime double 显示时间
type int 类型
title string 显示内容
duration double 时长
vtt_json json 字幕数据串
id int 编号id
sTime double 显示时间
eTime double 消失时间
type int 类型
content string 显示字幕内容
topic_json json 题库数据串
question_id int 问答题库id
title string 问答题标题
answer json 选项列表及答案
show_time string 显示时间
rightJumpTime double 正确跳转时间
wrongJumpTime double 错误跳转时间
timeline_json json timeline数据串
event_timeline_json json 事件timeline数据串
duration string 总时长
start_time double 开始时间
end_ime double 结束时间
create_time string 创建时间
接口示例

Request
url: http://ip:port/wipe/0d4c2b54-138e-426c-9995-1056176b9e88
Response
{
"success": true,
"result": {
"summary": {
"count": 2,
"time": 178
},
"list": [
{
"klgid": "95e4040f-0868-408f-8c86-44f40f4983a0",
"title": "第二段舞蹈",
"element_title": "",
"duration": 138,
"start_time": 49,
"end_time": 187,
"creator_uid": "teacher_cai",
"creator_nickname": "蔡老师",
"swpid": "a57d2dcc-4cdc-4d84-ab96-2a7eebbac5fe",
"swptitle": "",
"video_url": "storage/swlsource/video/7e/a2e1cccb.mp4",
"video_name": "《落花情》.mp4",
"assist_name": "7df2fb20.pdf",
"create_time": "2017-02-08 09:35:26",
"image": "storage/swlsource/pdf/2f/7df2fb20/6.png",
"hide": "",
"quote_count": "",
"topic_ids": "410070a7-13dc-4d2a-aa29-cb0cad4fe27e",
"knowledge_element": [
{
"elgid": "9f74ef13-2f43-46d1-b85a-43f7e4956d88",
"title": "",
"creator_uid": "teacher_cai",
"creator_nickname": "蔡老师",
"pdf_url": "",
"pdf_json": {
"page": 6,
"sTime": 49,
"eTime": 67,
"id": 5,
"type": "2",
"title": "",
"top": "0",
"length": 6,
"hide": "0",
"Knowledge_info": {
"id": 2,
"title": "第二段舞蹈",
"zhiId": 5
},
"duration": 18
},
"vtt_json": [
{
"sTime": 49,
"eTime": 52,
"content": "背影亮了"
},
{
"sTime": 57,
"eTime": 58,
"content": "身材不错"
},
{
"sTime": 60,
"eTime": 63,
"content": "不错。。。。。。。"
}
],
"topic_json": [],
"timeline_json": "",
"event_timeline_json": "",
"duration": 18,
"start_time": 49,
"end_time": 67,
"create_time": "2017-02-08 09:35:26",
"klgid": "95e4040f-0868-408f-8c86-44f40f4983a0"
},
{
"elgid": "db088e95-ce29-445e-9ff0-4e304c02955a",
"title": "",
"creator_uid": "teacher_cai",
"creator_nickname": "蔡老师",
"pdf_url": "",
"pdf_json": {
"page": 7,
"sTime": 67,
"eTime": 81,
"id": 6,
"type": "2",
"title": "",
"top": "1",
"length": 6,
"hide": "0",
"Knowledge_info": {
"id": 2,
"title": "第二段舞蹈",
"zhiId": 5
},
"duration": 14
},
"vtt_json": [],
"topic_json": [],
"timeline_json": "",
"event_timeline_json": "",
"duration": 14,
"start_time": 67,
"end_time": 81,
"create_time": "2017-02-08 09:35:26",
"klgid": "95e4040f-0868-408f-8c86-44f40f4983a0"
},
{
"elgid": "a224f326-ea11-4496-becf-33f5428653ad",
"title": "",
"creator_uid": "teacher_cai",
"creator_nickname": "蔡老师",
"pdf_url": "",
"pdf_json": {
"page": 8,
"sTime": 81,
"eTime": 105,
"id": 7,
"type": "2",
"title": "",
"top": "1",
"length": 6,
"hide": "0",
"Knowledge_info": {
"id": 2,
"title": "第二段舞蹈",
"zhiId": 5
},
"duration": 24
},
"vtt_json": [],
"topic_json": [],
"timeline_json": "",
"event_timeline_json": "",
"duration": 24,
"start_time": 81,
"end_time": 105,
"create_time": "2017-02-08 09:35:26",
"klgid": "95e4040f-0868-408f-8c86-44f40f4983a0"
},
{
"elgid": "72935dae-a8b1-48bd-a71e-bdf489279947",
"title": "",
"creator_uid": "teacher_cai",
"creator_nickname": "蔡老师",
"pdf_url": "",
"pdf_json": {
"page": 8,
"sTime": 105,
"eTime": 123,
"id": 8,
"type": "2",
"title": "",
"top": "1",
"length": 6,
"hide": "0",
"Knowledge_info": {
"id": 2,
"title": "第二段舞蹈",
"zhiId": 5
},
"duration": 18
},
"vtt_json": [],
"topic_json": [],
"timeline_json": "",
"event_timeline_json": "",
"duration": 18,
"start_time": 105,
"end_time": 123,
"create_time": "2017-02-08 09:35:26",
"klgid": "95e4040f-0868-408f-8c86-44f40f4983a0"
},
{
"elgid": "0ea68b9c-f703-4f7a-a85c-c0832431383f",
"title": "",
"creator_uid": "teacher_cai",
"creator_nickname": "蔡老师",
"pdf_url": "",
"pdf_json": {
"page": 8,
"sTime": 123,
"eTime": 153,
"id": 9,
"type": "2",
"title": "",
"top": "1",
"length": 6,
"hide": "0",
"Knowledge_info": {
"id": 2,
"title": "第二段舞蹈",
"zhiId": 5
},
"duration": 30
},
"vtt_json": [],
"topic_json": [],
"timeline_json": "",
"event_timeline_json": "",
"duration": 30,
"start_time": 123,
"end_time": 153,
"create_time": "2017-02-08 09:35:26",
"klgid": "95e4040f-0868-408f-8c86-44f40f4983a0"
},
{
"elgid": "d6455087-05a4-49f5-9219-1f92805dce68",
"title": "",
"creator_uid": "teacher_cai",
"creator_nickname": "蔡老师",
"pdf_url": "",
"pdf_json": {
"page": 8,
"sTime": 153,
"eTime": 187,
"id": 10,
"type": "2",
"title": "",
"top": "1",
"length": 6,
"hide": "0",
"Knowledge_info": {
"id": 2,
"title": "第二段舞蹈",
"zhiId": 5,
"image": "storage/swlsource/pdf/2f/7df2fb20/6.png"
},
"duration": 34
},
"vtt_json": [],
"topic_json": [
{
"creator_uid": "teacher_cai",
"type": "single",
"question": "醒脑解乏之物",
"option": [
"对",
"错"
],
"answer": [
{
"content": "对",
"rightAnswer": "true"
},
{
"content": "错",
"rightAnswer": "false"
}
],
"create_time": "2017-02-08 09:34:23",
"topic_id": "410070a7-13dc-4d2a-aa29-cb0cad4fe27e",
"_id": 5,
"id": "410070a7-13dc-4d2a-aa29-cb0cad4fe27e",
"uuid": "410070a7-13dc-4d2a-aa29-cb0cad4fe27e",
"question_id": "410070a7-13dc-4d2a-aa29-cb0cad4fe27e",
"showTime": 187,
"pdfDataID": 11,
"page": 8,
"rightJumpTime": 187,
"errorJumpTime": 153,
"answerindex": [
0
]
}
],
"timeline_json": "",
"event_timeline_json": "",
"duration": 34,
"start_time": 153,
"end_time": 187,
"create_time": "2017-02-08 09:35:26",
"klgid": "95e4040f-0868-408f-8c86-44f40f4983a0"
}
]
},
{
"klgid": "fbfebf47-c764-4e51-aacd-bdf36616b6dd",
"title": "第三段舞蹈",
"element_title": "",
"duration": 40.11500000000001,
"start_time": 187,
"end_time": 227.115,
"creator_uid": "teacher_cai",
"creator_nickname": "蔡老师",
"swpid": "a57d2dcc-4cdc-4d84-ab96-2a7eebbac5fe",
"swptitle": "",
"video_url": "storage/swlsource/video/7e/a2e1cccb.mp4",
"video_name": "《落花情》.mp4",
"assist_name": "7df2fb20.pdf",
"create_time": "2017-02-08 09:35:26",
"image": "storage/swlsource/pdf/2f/7df2fb20/8.png",
"hide": "",
"quote_count": "",
"topic_ids": "",
"knowledge_element": [
{
"elgid": "4ea83bdc-6648-442c-9e15-85b2225b1041",
"title": "",
"creator_uid": "teacher_cai",
"creator_nickname": "蔡老师",
"pdf_url": "",
"pdf_json": {
"page": 8,
"sTime": 187,
"eTime": 201,
"id": 11,
"type": "2",
"title": "",
"top": "0",
"length": 4,
"hide": "0",
"Knowledge_info": {
"id": 3,
"title": "第三段舞蹈",
"zhiId": 11
},
"duration": 14
},
"vtt_json": [],
"topic_json": [],
"timeline_json": "",
"event_timeline_json": "",
"duration": 14,
"start_time": 187,
"end_time": 201,
"create_time": "2017-02-08 09:35:26",
"klgid": "fbfebf47-c764-4e51-aacd-bdf36616b6dd"
},
{
"elgid": "12f27dda-b741-4fe1-8294-eedf1001a22c",
"title": "",
"creator_uid": "teacher_cai",
"creator_nickname": "蔡老师",
"pdf_url": "",
"pdf_json": {
"page": 8,
"sTime": 201,
"eTime": 214,
"id": 12,
"type": "2",
"title": "",
"top": "1",
"length": 4,
"hide": "0",
"Knowledge_info": {
"id": 3,
"title": "第三段舞蹈",
"zhiId": 11
},
"duration": 13
},
"vtt_json": [],
"topic_json": [],
"timeline_json": "",
"event_timeline_json": "",
"duration": 13,
"start_time": 201,
"end_time": 214,
"create_time": "2017-02-08 09:35:26",
"klgid": "fbfebf47-c764-4e51-aacd-bdf36616b6dd"
},
{
"elgid": "30b89e24-f041-4b97-b9d6-d0fabf684719",
"title": "",
"creator_uid": "teacher_cai",
"creator_nickname": "蔡老师",
"pdf_url": "",
"pdf_json": {
"page": 8,
"sTime": 214,
"eTime": 222,
"id": 13,
"type": "2",
"title": "",
"top": "1",
"length": 4,
"hide": "0",
"Knowledge_info": {
"id": 3,
"title": "第三段舞蹈",
"zhiId": 11
},
"duration": 8
},
"vtt_json": [],
"topic_json": [],
"timeline_json": "",
"event_timeline_json": "",
"duration": 8,
"start_time": 214,
"end_time": 222,
"create_time": "2017-02-08 09:35:26",
"klgid": "fbfebf47-c764-4e51-aacd-bdf36616b6dd"
},
{
"elgid": "986866f8-0074-4d86-84e8-1d9ef7b0efaa",
"title": "",
"creator_uid": "teacher_cai",
"creator_nickname": "蔡老师",
"pdf_url": "",
"pdf_json": {
"page": 8,
"sTime": 222,
"eTime": 227.115,
"id": 14,
"type": "2",
"title": "",
"top": "1",
"length": 4,
"hide": "0",
"Knowledge_info": {
"id": 3,
"title": "第三段舞蹈",
"zhiId": 11,
"image": "storage/swlsource/pdf/2f/7df2fb20/8.png"
},
"duration": 5.115000000000009
},
"vtt_json": [],
"topic_json": [],
"timeline_json": "",
"event_timeline_json": "",
"duration": 5.115000000000009,
"start_time": 222,
"end_time": 227.115,
"create_time": "2017-02-08 09:35:26",
"klgid": "fbfebf47-c764-4e51-aacd-bdf36616b6dd"
}
]
}
]
}
}

3.9 答题记录

接口功能

回答题目

接口地址

/question/answer

HTTP Content-Type

application/json

HTTP 请求方式

POST

请求参数
参数 必选 类型 说明
QueryParam
uid string 用户id 必需
klgid string 知识点id 必需
swpid string 课件id 必需
questionid string 问题id值 必需
answerid string 选项id 必需
tid string 老师名称 必需
HTTP 响应状态

200

返回字段 字段类型 说明
success boolean 任务结果
isRight boolean 是否回答正确
error string 错误信息,如错误,返回,否则没有

其他响应状态描述请参照:【备注】-【错误码】

接口示例

Request
curl -X POST -H "Content-Type:application/json" -d {questionid:"",klgid:"",answerid:"",swpid:"",tid:""}
url: http://ip:port/question/answer

Response
成功:{"success":true,"isRight": false}
失败:{"success":false,"error":"XXX"}

4.播放器

4.1 获取课程播放信息

接口地址

/swl/goPlay/:swlid

HTTP Content-Type / 请求方式

application/json
get

请求参数
参数 必选 类型 说明
RequestBody
swlid string 课程的id值
HTTP 响应状态

200

返回字段 字段类型 说明
success Booleans 是否成功,true ; false
data json 返回结果

data 解析

返回字段 字段类型 说明
swlid string 课程的id值
creator_uid string 课程老师id
creator_nickname string 课程老师的昵称
duration string 课程播放的时长
image string 课程的截图地址
is_open_topic Booleans 是否开启问答,1:开启;0:关闭
klg_total int 知识点总数
poster string 海报的截图地址
question_total int 问答题总数
summary string 课程简介
title string 课程的名称
knowledge json array
接口示例

Request
curl -X POST -H "Content-Type:application/json" -d {"userinfo":userinfo} http://192.168.1.239/statistics/user/study/:swlid/:uid
Response
{"success":true,"data":{"swlid":"e6c83ea0-60a9-43a7-a23e-c2ef6abd51a9","creator_uid":"like","creator_nickname":"李克","title":"工作分析方法的比较(一)","duration":1325.376,"image":"/video/photo/?path=storage/swlsource/video/16/7a231cf7.mp4","is_open_topic":1,"video_url":"","poster":"","summary":"","require":"","create_time":"2017-02-09 11:28:53","knowledge":[{"klgid":"7415d1dd-31e6-4262-9915-fb0fbfc5e3e0","title":"默认标题","element_title":"","duration":102,"start_time":0,"end_time":102,"creator_uid":"like","creator_nickname":"李克","swpid":"2ee68b2a-3e43-41cb-9373-e52c39057b65","swptitle":"","video_url":"storage/swlsource/video/16/7a231cf7.mp4","video_name":"工作分析方法的比较(一).mp4","assist_id":"","assist_url":"storage/swlsource/pdf/50/c3f6909c.pdf","assist_name":"c3f6909c.pdf","create_time":"2017-02-09 11:26:54","image":"storage/swlsource/pdf/50/c3f6909c/1.png","hide":"","quote_count":"","topic_ids":"","knowledge_element":[{"elgid":"d218ff49-6fb0-4b17-b2ee-e14b18d3f25d","title":"默认标题","creator_uid":"like","creator_nickname":"李克","pdf_url":"","pdf_json":{"id":0,"page":1,"sTime":0,"title":"默认标题","type":"1","eTime":102,"duration":102},"vtt_json":[{"sTime":0.0426,"eTime":40.684,"content":""},{"sTime":40.789,"eTime":56.748,"content":""},{"sTime":56.789,"eTime":99.43,"content":""},{"sTime":100.48,"eTime":102,"content":""}],"topic_json":[],"timeline_json":"","event_timeline_json":"","duration":102,"start_time":0,"end_time":102,"create_time":"2017-02-09 11:26:54","klgid":"7415d1dd-31e6-4262-9915-fb0fbfc5e3e0","swpid":"2ee68b2a-3e43-41cb-9373-e52c39057b65"}],"_id":1471,"clear":false},{"klgid":"22d0a69f-7063-4221-9404-c219ebb05efa","title":"两种工作分析方法","element_title":"","duration":33,"start_time":102,"end_time":135,"creator_uid":"like","creator_nickname":"李克","swpid":"2ee68b2a-3e43-41cb-9373-e52c39057b65","swptitle":"","video_url":"storage/swlsource/video/16/7a231cf7.mp4","video_name":"工作分析方法的比较(一).mp4","assist_id":"","assist_url":"storage/swlsource/pdf/50/c3f6909c.pdf","assist_name":"c3f6909c.pdf","create_time":"2017-02-09 11:26:54","image":"storage/swlsource/pdf/50/c3f6909c/2.png","hide":"","quote_count":"","topic_ids":"d9ec88c4-eeb6-46b6-8788-1bcc5463fc5d","knowledge_element":[{"elgid":"b1882768-62b1-4f2e-b153-0d931ffc173e","title":"两种工作分析方法","creator_uid":"like","creator_nickname":"李克","pdf_url":"","pdf_json":{"page":2,"sTime":102,"eTime":120,"id":1,"type":"1","title":"两种工作分析方法","duration":33},"vtt_json":[{"sTime":102,"eTime":104.76,"content":""},{"sTime":105.91,"eTime":106.43,"content":""},{"sTime":127.57,"eTime":128.74,"content":""}],"topic_json":[{"creator_uid":"like","type":"single","question":"在一个工作场景来观察行为、找到关键数据和信息的方法是()","option":["计算机模拟法","预测法","面谈法","观察法"],"answer":[{"content":"计算机模拟法","rightAnswer":"false"},{"content":"预测法","rightAnswer":"false"},{"content":"面谈法","rightAnswer":"false"},{"content":"观察法","rightAnswer":"true"}],"create_time":"2017-02-09 11:06:08","topic_id":"d9ec88c4-eeb6-46b6-8788-1bcc5463fc5d","_id":92,"id":"d9ec88c4-eeb6-46b6-8788-1bcc5463fc5d","uuid":"d9ec88c4-eeb6-46b6-8788-1bcc5463fc5d","question_id":"d9ec88c4-eeb6-46b6-8788-1bcc5463fc5d","showTime":127.57,"pdfDataID":6,"rightJumpTime":127,"errorJumpTime":104,"answerindex":[3]}],"timeline_json":"","event_timeline_json":"","duration":33,"start_time":102,"end_time":135,"create_time":"2017-02-09 11:26:54","klgid":"22d0a69f-7063-4221-9404-c219ebb05efa","swpid":"2ee68b2a-3e43-41cb-9373-e52c39057b65"}],"_id":1472,"clear":false},{"klgid":"3139e4ca-ee00-4d0a-ae8a-35321439946d","title":"观察法","element_title":"","duration":64,"start_time":135,"end_time":199,"creator_uid":"like","creator_nickname":"李克","swpid":"2ee68b2a-3e43-41cb-9373-e52c39057b65","swptitle":"","video_url":"storage/swlsource/video/16/7a231cf7.mp4","video_name":"工作分析方法的比较(一).mp4","assist_id":"","assist_url":"storage/swlsource/pdf/50/c3f6909c.pdf","assist_name":"c3f6909c.pdf","create_time":"2017-02-09 11:26:54","image":"storage/swlsource/pdf/50/c3f6909c/3.png","hide":"","quote_count":"","topic_ids":"651091db-7abe-4bcb-9fc2-2dd82103b900","knowledge_element":[{"elgid":"a5cdb446-9b4a-4e9d-aa63-2e568f84d256","title":"观察法","creator_uid":"like","creator_nickname":"李克","pdf_url":"","pdf_json":{"page":3,"sTime":135,"eTime":1325.376,"id":2,"type":"1","title":"观察法","duration":64},"vtt_json":[{"sTime":172.41,"eTime":173.44,"content":""},{"sTime":179.49,"eTime":180.63,"content":""},{"sTime":184.78,"eTime":185.79,"content":""},{"sTime":187.02,"eTime":188.14,"content":""}],"topic_json":[{"creator_uid":"like","type":"single","question":"下列()不适合使用观察法。","option":["做过工作分析","有一定经验","未做过工作分析","人力资源专家"],"answer":[{"content":"做过工作分析","rightAnswer":"false"},{"content":"有一定经验","rightAnswer":"false"},{"content":"未做过工作分析","rightAnswer":"true"},{"content":"人力资源专家","rightAnswer":"false"}],"create_time":"2017-02-09 11:16:33","topic_id":"651091db-7abe-4bcb-9fc2-2dd82103b900","_id":93,"id":"651091db-7abe-4bcb-9fc2-2dd82103b900","uuid":"651091db-7abe-4bcb-9fc2-2dd82103b900","question_id":"651091db-7abe-4bcb-9fc2-2dd82103b900","showTime":172.41,"pdfDataID":7,"rightJumpTime":172,"errorJumpTime":127,"answerindex":[2]}],"timeline_json":"","event_timeline_json":"","duration":64,"start_time":135,"end_time":199,"create_time":"2017-02-09 11:26:54","klgid":"3139e4ca-ee00-4d0a-ae8a-35321439946d","swpid":"2ee68b2a-3e43-41cb-9373-e52c39057b65"}],"_id":1473,"clear":false},{"klgid":"08dc3bb8-82a6-4037-8da1-977de94c430d","title":"观察法详解","element_title":"","duration":171,"start_time":199,"end_time":370,"creator_uid":"like","creator_nickname":"李克","swpid":"2ee68b2a-3e43-41cb-9373-e52c39057b65","swptitle":"","video_url":"storage/swlsource/video/16/7a231cf7.mp4","video_name":"工作分析方法的比较(一).mp4","assist_id":"","assist_url":"storage/swlsource/pdf/50/c3f6909c.pdf","assist_name":"c3f6909c.pdf","create_time":"2017-02-09 11:26:54","image":"storage/swlsource/pdf/50/c3f6909c/4.png","hide":"","quote_count":"","topic_ids":"08e1fa0b-7be3-4264-b4ca-4ecbcb2680bc","knowledge_element":[{"elgid":"f6252ae0-8818-4598-9486-7228f040a444","title":"观察法详解","creator_uid":"like","creator_nickname":"李克","pdf_url":"","pdf_json":{"page":4,"sTime":199,"eTime":370,"id":3,"type":"1","title":"观察法详解","duration":171},"vtt_json":[{"sTime":210,"eTime":212},{"sTime":212.43,"eTime":213.46,"content":""},{"sTime":282.19,"eTime":283.5,"content":""},{"sTime":289.6,"eTime":291.24,"content":""},{"sTime":349.78,"eTime":350.84,"content":""}],"topic_json":[{"creator_uid":"like","type":"single","question":"若重点观察工作重点、KPI、CPI等,则说明职位说明书重点()。","option":["人员配置;","人员招聘;","为考核提供依据;","沟通技巧;"],"answer":[{"content":"人员配置;","rightAnswer":"false"},{"content":"人员招聘;","rightAnswer":"false"},{"content":"为考核提供依据;","rightAnswer":"true"},{"content":"沟通技巧;","rightAnswer":"false"}],"create_time":"2017-02-09 11:20:23","topic_id":"08e1fa0b-7be3-4264-b4ca-4ecbcb2680bc","_id":94,"id":"08e1fa0b-7be3-4264-b4ca-4ecbcb2680bc","uuid":"08e1fa0b-7be3-4264-b4ca-4ecbcb2680bc","question_id":"08e1fa0b-7be3-4264-b4ca-4ecbcb2680bc","showTime":210,"pdfDataID":63,"rightJumpTime":210,"errorJumpTime":187,"answerindex":[2]}],"timeline_json":"","event_timeline_json":"","duration":171,"start_time":199,"end_time":370,"create_time":"2017-02-09 11:26:54","klgid":"08dc3bb8-82a6-4037-8da1-977de94c430d","swpid":"2ee68b2a-3e43-41cb-9373-e52c39057b65"}],"_id":1474,"clear":false},{"klgid":"e5e9418b-728a-45db-91c6-2ac2fc48aeff","title":"观察法的适用范围","element_title":"","duration":57,"start_time":370,"end_time":427,"creator_uid":"like","creator_nickname":"李克","swpid":"2ee68b2a-3e43-41cb-9373-e52c39057b65","swptitle":"","video_url":"storage/swlsource/video/16/7a231cf7.mp4","video_name":"工作分析方法的比较(一).mp4","assist_id":"","assist_url":"storage/swlsource/pdf/50/c3f6909c.pdf","assist_name":"c3f6909c.pdf","create_time":"2017-02-09 11:26:54","image":"storage/swlsource/pdf/50/c3f6909c/5.png","hide":"","quote_count":"","topic_ids":"","knowledge_element":[{"elgid":"b3a2a2e5-7a42-4a6b-8f63-9d1cf716c8ac","title":"观察法的适用范围","creator_uid":"like","creator_nickname":"李克","pdf_url":"","pdf_json":{"page":5,"sTime":370,"eTime":427,"id":4,"type":"1","title":"观察法的适用范围","duration":57},"vtt_json":[{"sTime":371.73,"eTime":373.12,"content":""},{"sTime":373.44,"eTime":374.74,"content":""},{"sTime":376.57,"eTime":377.62,"content":""},{"sTime":404.75,"eTime":405.8,"content":""},{"sTime":409.34,"eTime":410.62,"content":""},{"sTime":422.72,"eTime":423.76,"content":""}],"topic_json":[],"timeline_json":"","event_timeline_json":"","duration":57,"start_time":370,"end_time":427,"create_time":"2017-02-09 11:26:54","klgid":"e5e9418b-728a-45db-91c6-2ac2fc48aeff","swpid":"2ee68b2a-3e43-41cb-9373-e52c39057b65"}],"_id":1475,"clear":false},{"klgid":"d2848d99-9f6c-4b54-88da-79d0282e76e0","title":"观察时要注意的问题","element_title":"","duration":198,"start_time":427,"end_time":625,"creator_uid":"like","creator_nickname":"李克","swpid":"2ee68b2a-3e43-41cb-9373-e52c39057b65","swptitle":"","video_url":"storage/swlsource/video/16/7a231cf7.mp4","video_name":"工作分析方法的比较(一).mp4","assist_id":"","assist_url":"storage/swlsource/pdf/50/c3f6909c.pdf","assist_name":"c3f6909c.pdf","create_time":"2017-02-09 11:26:54","image":"storage/swlsource/pdf/50/c3f6909c/6.png","hide":"","quote_count":"","topic_ids":"","knowledge_element":[{"elgid":"643b371a-0ade-4c39-82c7-7064e0985548","title":"观察法应用要点","creator_uid":"like","creator_nickname":"李克","pdf_url":"","pdf_json":{"page":6,"sTime":427,"eTime":455,"id":5,"type":"2","title":"观察法应用要点","top":"0","length":3,"hide":"0","Knowledge_info":{"id":5,"title":"观察时要注意的问题","zhiId":6},"duration":28},"vtt_json":[],"topic_json":[],"timeline_json":"","event_timeline_json":"","duration":28,"start_time":427,"end_time":455,"create_time":"2017-02-09 11:26:54","klgid":"d2848d99-9f6c-4b54-88da-79d0282e76e0","swpid":"2ee68b2a-3e43-41cb-9373-e52c39057b65"},{"elgid":"82e20f0e-c7db-419b-8a1f-60639760d578","title":"观察时要注意的问题","creator_uid":"like","creator_nickname":"李克","pdf_url":"","pdf_json":{"page":6,"sTime":455,"eTime":540,"id":6,"type":"2","title":"观察时要注意的问题","top":"1","length":3,"hide":"0","Knowledge_info":{"id":5,"title":"观察时要注意的问题","zhiId":6},"duration":85},"vtt_json":[{"sTime":473.36,"eTime":474.71,"content":""},{"sTime":492.11,"eTime":493.18,"content":""},{"sTime":493.9,"eTime":495.14,"content":""},{"sTime":505.49,"eTime":506.51,"content":""},{"sTime":522.66,"eTime":523.84,"content":""},{"sTime":526.31,"eTime":527.46,"content":""},{"sTime":533.86,"eTime":535.14,"content":""}],"topic_json":[],"timeline_json":"","event_timeline_json":"","duration":85,"start_time":455,"end_time":540,"create_time":"2017-02-09 11:26:54","klgid":"d2848d99-9f6c-4b54-88da-79d0282e76e0","swpid":"2ee68b2a-3e43-41cb-9373-e52c39057b65"},{"elgid":"7b976fe7-1ff9-4b61-b22e-26909dad667e","title":"观察时要注意的问题","creator_uid":"like","creator_nickname":"李克","pdf_url":"","pdf_json":{"page":6,"sTime":540,"eTime":738,"id":7,"type":"2","title":"观察时要注意的问题","top":"1","length":3,"hide":"0","Knowledge_info":{"id":6,"title":"观察时要注意的问题","zhiId":6,"image":"storage/swlsource/pdf/50/c3f6909c/6.png"},"duration":85},"vtt_json":[{"sTime":609.96,"eTime":625,"content":""}],"topic_json":[],"timeline_json":"","event_timeline_json":"","duration":85,"start_time":540,"end_time":625,"create_time":"2017-02-09 11:26:54","klgid":"d2848d99-9f6c-4b54-88da-79d0282e76e0","swpid":"2ee68b2a-3e43-41cb-9373-e52c39057b65"}],"_id":1476,"clear":false},{"klgid":"81517d56-f7e2-40cd-98c0-da08524d3fc0","title":"面谈法","element_title":"","duration":113,"start_time":625,"end_time":738,"creator_uid":"like","creator_nickname":"李克","swpid":"2ee68b2a-3e43-41cb-9373-e52c39057b65","swptitle":"","video_url":"storage/swlsource/video/16/7a231cf7.mp4","video_name":"工作分析方法的比较(一).mp4","assist_id":"","assist_url":"storage/swlsource/pdf/50/c3f6909c.pdf","assist_name":"c3f6909c.pdf","create_time":"2017-02-09 11:26:54","image":"storage/swlsource/pdf/50/c3f6909c/7.png","hide":"","quote_count":"","topic_ids":"","knowledge_element":[{"elgid":"7980011a-50d5-43f8-bd6d-08596d246894","title":"面谈法","creator_uid":"like","creator_nickname":"李克","pdf_url":"","pdf_json":{"page":7,"sTime":625,"eTime":1325.376,"id":8,"type":"1","title":"面谈法","top":"2","length":0,"hide":"","Knowledge_info":"","duration":113},"vtt_json":[{"sTime":625,"eTime":626.19,"content":""},{"sTime":631.89,"eTime":632.94,"content":""},{"sTime":634.21,"eTime":635.22,"content":""},{"sTime":714.28,"eTime":715.47,"content":""},{"sTime":714.28,"eTime":715.75,"content":""},{"sTime":716.37,"eTime":717.5,"content":""},{"sTime":718.59,"eTime":720.3,"content":""},{"sTime":720.34,"eTime":721.6,"content":""},{"sTime":726.16,"eTime":727.34,"content":""},{"sTime":726.16,"eTime":727.93,"content":""}],"topic_json":[],"timeline_json":"","event_timeline_json":"","duration":113,"start_time":625,"end_time":738,"create_time":"2017-02-09 11:26:54","klgid":"81517d56-f7e2-40cd-98c0-da08524d3fc0","swpid":"2ee68b2a-3e43-41cb-9373-e52c39057b65"}],"_id":1477,"clear":false},{"klgid":"32599c96-a6e0-4165-be54-00503507bd8a","title":"面谈法对象","element_title":"","duration":25,"start_time":738,"end_time":763,"creator_uid":"like","creator_nickname":"李克","swpid":"2ee68b2a-3e43-41cb-9373-e52c39057b65","swptitle":"","video_url":"storage/swlsource/video/16/7a231cf7.mp4","video_name":"工作分析方法的比较(一).mp4","assist_id":"","assist_url":"storage/swlsource/pdf/50/c3f6909c.pdf","assist_name":"c3f6909c.pdf","create_time":"2017-02-09 11:26:54","image":"storage/swlsource/pdf/50/c3f6909c/7.png","hide":"","quote_count":"","topic_ids":"","knowledge_element":[{"elgid":"92b2fab4-a6f9-465e-a3c8-984059ced5d9","title":"面谈法对象","creator_uid":"like","creator_nickname":"李克","pdf_url":"","pdf_json":{"page":7,"sTime":738,"eTime":763,"id":9,"type":"1","title":"面谈法对象","duration":25},"vtt_json":[{"sTime":738.02,"eTime":739.26,"content":""},{"sTime":740.11,"eTime":741.2,"content":""},{"sTime":752.12,"eTime":753.53,"content":""}],"topic_json":[],"timeline_json":"","event_timeline_json":"","duration":25,"start_time":738,"end_time":763,"create_time":"2017-02-09 11:26:54","klgid":"32599c96-a6e0-4165-be54-00503507bd8a","swpid":"2ee68b2a-3e43-41cb-9373-e52c39057b65"}],"_id":1478,"clear":false},{"klgid":"5c6f38f4-943d-47db-bd73-a451f2f5cc45","title":"面谈法的优点","element_title":"","duration":205,"start_time":763,"end_time":968,"creator_uid":"like","creator_nickname":"李克","swpid":"2ee68b2a-3e43-41cb-9373-e52c39057b65","swptitle":"","video_url":"storage/swlsource/video/16/7a231cf7.mp4","video_name":"工作分析方法的比较(一).mp4","assist_id":"","assist_url":"storage/swlsource/pdf/50/c3f6909c.pdf","assist_name":"c3f6909c.pdf","create_time":"2017-02-09 11:26:54","image":"storage/swlsource/pdf/50/c3f6909c/9.png","hide":"","quote_count":"","topic_ids":"","knowledge_element":[{"elgid":"86fad65f-61cf-44c4-8054-4cbe2bf19d36","title":"面谈法的优点","creator_uid":"like","creator_nickname":"李克","pdf_url":"","pdf_json":{"page":9,"sTime":763,"eTime":968,"id":10,"type":"1","title":"面谈法的优点","duration":205},"vtt_json":[{"sTime":787.49,"eTime":788.52,"content":""},{"sTime":796.48,"eTime":797.82,"content":""},{"sTime":807.16,"eTime":808.59,"content":""},{"sTime":812.73,"eTime":813.78,"content":""},{"sTime":823.78,"eTime":824.79,"content":""},{"sTime":831.06,"eTime":832.19,"content":""},{"sTime":876.18,"eTime":877.78,"content":""}],"topic_json":[],"timeline_json":"","event_timeline_json":"","duration":205,"start_time":763,"end_time":968,"create_time":"2017-02-09 11:26:54","klgid":"5c6f38f4-943d-47db-bd73-a451f2f5cc45","swpid":"2ee68b2a-3e43-41cb-9373-e52c39057b65"}],"_id":1479,"clear":false},{"klgid":"1f8e1904-bba1-42ee-92c0-c341971c60c0","title":"提高面谈法效果的沟通技巧","element_title":"","duration":158,"start_time":968,"end_time":1126,"creator_uid":"like","creator_nickname":"李克","swpid":"2ee68b2a-3e43-41cb-9373-e52c39057b65","swptitle":"","video_url":"storage/swlsource/video/16/7a231cf7.mp4","video_name":"工作分析方法的比较(一).mp4","assist_id":"","assist_url":"storage/swlsource/pdf/50/c3f6909c.pdf","assist_name":"c3f6909c.pdf","create_time":"2017-02-09 11:26:54","image":"storage/swlsource/pdf/50/c3f6909c/11.png","hide":"","quote_count":"","topic_ids":"","knowledge_element":[{"elgid":"cac864e7-9eef-48ec-aa24-897fe4ec6f52","title":"提高面谈法效果的沟通技巧","creator_uid":"like","creator_nickname":"李克","pdf_url":"","pdf_json":{"page":11,"sTime":968,"eTime":1126,"id":11,"type":"1","title":"提高面谈法效果的沟通技巧","duration":158},"vtt_json":[{"sTime":1011.5,"eTime":1012.6,"content":""},{"sTime":1054.6,"eTime":1055.7,"content":""},{"sTime":1079,"eTime":1080.4,"content":""},{"sTime":1081.8,"eTime":1083,"content":""},{"sTime":1093.3,"eTime":1094.7,"content":""},{"sTime":1100,"eTime":1101.4,"content":""},{"sTime":1125.5,"eTime":1126,"content":""}],"topic_json":[],"timeline_json":"","event_timeline_json":"","duration":158,"start_time":968,"end_time":1126,"create_time":"2017-02-09 11:26:54","klgid":"1f8e1904-bba1-42ee-92c0-c341971c60c0","swpid":"2ee68b2a-3e43-41cb-9373-e52c39057b65"}],"_id":1480,"clear":false},{"klgid":"6fb65de8-f897-42e6-8921-fa0f27071f6a","title":"","element_title":"","duration":199.37599999999998,"start_time":1126,"end_time":1325.376,"creator_uid":"like","creator_nickname":"李克","swpid":"2ee68b2a-3e43-41cb-9373-e52c39057b65","swptitle":"","video_url":"storage/swlsource/video/16/7a231cf7.mp4","video_name":"工作分析方法的比较(一).mp4","assist_id":"","assist_url":"storage/swlsource/pdf/50/c3f6909c.pdf","assist_name":"c3f6909c.pdf","create_time":"2017-02-09 11:26:54","image":"storage/swlsource/pdf/50/c3f6909c/12.png","hide":"","quote_count":"","topic_ids":"","knowledge_element":[{"elgid":"1840613d-e226-4aad-a256-c35ca93d5c15","title":"","creator_uid":"like","creator_nickname":"李克","pdf_url":"","pdf_json":{"page":12,"sTime":1126,"eTime":135,"id":12,"type":"1","title":"","duration":199.37599999999998},"vtt_json":[{"sTime":1126,"eTime":1126.8,"content":""},{"sTime":1164,"eTime":1165.4,"content":""},{"sTime":1207.5,"eTime":1208.9,"content":""},{"sTime":1210,"eTime":1211.3,"content":""},{"sTime":1219.3,"eTime":1220.9,"content":""},{"sTime":1233,"eTime":1234.5,"content":""},{"sTime":1261.5,"eTime":1262.7,"content":""},{"sTime":1289.8,"eTime":1323.8,"content":""}],"topic_json":[],"timeline_json":"","event_timeline_json":"","duration":199.37599999999998,"start_time":1126,"end_time":1325.376,"create_time":"2017-02-09 11:26:54","klgid":"6fb65de8-f897-42e6-8921-fa0f27071f6a","swpid":"2ee68b2a-3e43-41cb-9373-e52c39057b65"}],"_id":1481,"clear":false}],"question_total":3,"klg_total":11,"_id":20}}

4.2 保存播放进度

接口功能

播放记录入库

接口地址

/question/addplay

HTTP Content-Type

application/json

HTTP 请求方式

POST

请求参数
参数 必选 类型 说明
username string cookie里的用户信息
swlid string 课件的swlid
total_time string 课件的视频总时长
callback_time string 播放回调间隔时间
precent string 播放视频的百分比
image string 当前播放的知识点图片
HTTP 响应状态

200

返回字段 字段类型 说明
status int 返回状态码
mes string 回调结果(失败)
result string 成功(首次返回数组,之后返回1)
接口示例

Request
curl -X POST -H "Content-Type:application/json" -d {swlid:"",total_time:"",callback_time:"",precent:"",image:""}
url: http://ip:port/question/addplay

Response
{
"status": 200,
"mes": "xxxxx"
}

5 获取视频截图

/video/photo/

HTTP Content-Type / 请求方式

get

请求参数
参数 必选 类型 说明
RequestBody
path string 视频地址,接口请求获取到的fullname
接口示例

http://192.168.1.237/video/photo/?path=storage%2Fpublic%2Flubocam%2Fpakit%2Fdf234sdfsdv.mp4

6. pdf

6.1 上传pdf

接口功能

上传pdf文件

接口地址

/pdf

HTTP Content-Type

application/json

HTTP 请求方式

POST

请求参数
参数 必选 类型 说明
QueryParam
HTTP 响应状态

200

返回字段 字段类型 说明
success boolean 任务结果
error string 错误信息,如错误,返回,否则没有

其他响应状态描述请参照:【备注】-【错误码】

接口示例

Request
url: http://ip:port/pdf

Response
成功:{"success":true}
失败:{"success":false,"error":"XXX"}

6.2 获取pdf列表

接口功能

上传pdf文件

接口地址

/pdf/list

HTTP Content-Type

application/json

HTTP 请求方式

GET

请求参数
参数 必选 类型 说明
QueryParam
HTTP 响应状态

200

返回字段 字段类型 说明
success boolean 任务结果
data array pdf数组
error string 错误信息,如错误,返回,否则没有

data参数

返回字段 字段类型 说明
assist_url string pdf地址
create_time string pdf创建时间
creator_uid string pdf创建者
image string pdf的封面截图
title string pdf名称
uuid string pdf唯一id值

其他响应状态描述请参照:【备注】-【错误码】
提供pdf截图功能,assist_url去掉后缀.pdf +/n.png
如:storage/swlsource/pdf/f7/bd262d5d/5.png 代表第五页pdf的截图

接口示例

Request
url: http://ip:port/pdf

Response
成功:{"success":true,data:[{xxx},{xxx}]}
失败:{"success":false,"error":"XXX"}

7. 提问问题

7.1 (学生端)获取所有提问的问题

接口地址

/ask/app/student/question

HTTP Content-Type / 请求方式

application/json
get

请求参数
参数 必选 类型 说明
sid string 学生id 必需
swlid string 课程id
HTTP 响应状态

200

返回字段 字段类型 说明
result Array 返回结果
接口示例

Request
curl -X get -H "Content-Type:application/json" http://statistics.luobo.com/ask/app/student/question
Response
{"result":{"status":true,"result":[{"id":"e702f0dd-4cf5-4fe4-8176-fe290812ce2c","sid":"5001","tid":"admin","swlid":"84a8abbf-38a9-4f07-9e99-d0e38db5b982","klgid":"02a5ddb5-6b40-44b1-84ac-813a4dc90189","question":"破鞋","point_name":"我的奋斗03","swlname":"课程02","nickname":"","ask_time":"1486865596149","is_answer":1,"_id":101,"answer":[{"aid":"e702f0dd-4cf5-4fe4-8176-fe290812ce2c","swlid":"84a8abbf-38a9-4f07-9e99-d0e38db5b982","answer":"88888888888888888888888888888","sid":"","klgid":"","answer_time":"1486886222896","id":"4ff8077e-e1b7-496b-8928-421a3affc563","_id":36}]}],"pages":1}}

7.2 老师端)获取该课件学生提问的所有问题(参数可能包含:全部学生,全部知识点的标识 )

接口地址

/ask/app/teacher/question

HTTP Content-Type / 请求方式

application/json
get

请求参数
参数 必选 类型 说明
sid string 学生id
swlid string 课程id 必需
klgid string 知识点id
HTTP 响应状态

200

返回字段 字段类型 说明
result Array 返回结果
接口示例

Request
curl -X get -H "Content-Type:application/json" http://statistics.luobo.com/ask/app/teacher/question
Response
{"result":{"status":true,"result":[{"id":"e702f0dd-4cf5-4fe4-8176-fe290812ce2c","sid":"5001","tid":"admin","swlid":"84a8abbf-38a9-4f07-9e99-d0e38db5b982","klgid":"02a5ddb5-6b40-44b1-84ac-813a4dc90189","question":"破鞋","point_name":"我的奋斗03","swlname":"课程02","nickname":"","ask_time":"1486865596149","is_answer":1,"_id":101,"answer":[{"aid":"e702f0dd-4cf5-4fe4-8176-fe290812ce2c","swlid":"84a8abbf-38a9-4f07-9e99-d0e38db5b982","answer":"88888888888888888888888888888","sid":"","klgid":"","answer_time":"1486886222896","id":"4ff8077e-e1b7-496b-8928-421a3affc563","_id":36}]}],"pages":1}}

添加新批注
在作者公开此批注前,只有你和作者可见。
回复批注