Appearance
线下课程
线下课程详情
GET /plugins/offline_course_pro/offline_course/{id}
权限
- 需要认证
请求参数
名称 | 位置 | 类型 | 必选 | 说明 |
---|---|---|---|---|
id | path | string | false | 线下课程id |
响应
json
{
"title": "线下课程名称",
"summary": "线下课程简介",
"cover": "线下课程封面图",
"goals": "线下课程目标",
"audiences": "线下课程适用人群",
"certificate": [
"证书1"
],
"credit": {
"num": "20",
"fullAttend": true,
"homeworkPassRate": "50%"
}
}
参数说明
名称 | 类型 | 必选 | 约束 | 说明 |
---|---|---|---|---|
title | string | false | none | 线下课程名称 |
summary | string | false | none | 线下课程简介 |
cover | string | false | none | 线下课程封面图 |
goals | string | false | none | 线下课程目标 |
audiences | string | false | none | 线下课程适用人群 |
certificate | string | false | none | none |
credit | object | false | none | none |
» num | string | false | none | 完成后可获得学分数量 |
» fullAttend | boolean | false | none | 是否需要全勤 |
» homeworkPassRate | string | false | none | 作业通过率 |
线下课程列表
GET /plugins/offline_course_pro/offline_course
权限
- 需要认证
请求
名称 | 位置 | 类型 | 必选 | 说明 |
---|---|---|---|---|
categoryId | query | string | false | 课程分类id |
响应
json
{
"data": [
{
"id": "41",
"title": "测试可是",
"cover": {
"small": "http://qa2.edusoho.cn/assets/img/default/courseSet.png",
"middle": "http://qa2.edusoho.cn/assets/img/default/courseSet.png",
"large": "http://qa2.edusoho.cn/assets/img/default/courseSet.png"
},
"status": "published",
"summary": null,
"audiences": [],
"goals": [],
"categoryId": "441",
"time": "0"
}
],
"paging": {
"total": 1,
"offset": 0,
"limit": 10
}
}
参数说明
名称 | 类型 | 必选 | 约束 | 说明 |
---|---|---|---|---|
title | string | false | none | 线下课程名称 |
summary | string | false | none | 线下课程简介 |
cover | string | false | none | 线下课程封面图 |
goals | string | false | none | 线下课程目标 |
audiences | string | false | none | 线下课程适用人群 |
certificate | string | false | none | none |
credit | object | false | none | none |
» num | string | false | none | 完成后可获得学分数量 |
» fullAttend | boolean | false | none | 是否需要全勤 |
» homeworkPassRate | string | false | none | 作业通过率 |
订阅线下课程
POST /plugins/offline_course_pro/offline_course_subscribe
权限
- 需要认证
请求
名称 | 位置 | 类型 | 必选 | 说明 |
---|---|---|---|---|
id | query | string | false | 线下课程id |
status | query | string | false | 订阅状态,是取消or订阅 |
响应
json
{
"success": true
}
线下课程开班列表
GET /plugins/offline_course_pro/offline_class
权限
- 需要认证
请求参数
名称 | 位置 | 类型 | 必选 | 说明 |
---|---|---|---|---|
offset | query | string | false | 分页偏移值, 默认0 |
limit | query | string | false | 每一页数量, 默认10 |
响应
json
{
"data": [
{
"id": "40",
"title": "销售成功案例分享-2020-06-10",
"status": "published",
"place": "5-703",
"teacherId": "11",
"ownerId": "10",
"createdUserId": "1051",
"conditionalAccess": "0",
"requireEnrollment": "1",
"requireAudit": "0",
"endTime": "1591758000",
"startTime": "1591754400",
"enrollmentStartDate": "1591545600",
"enrollmentEndDate": "1591804799",
"enrollLockDays": "0",
"maxStudentNum": "0",
"orgId": "1",
"offlineCourseId": "201",
"templateId": "5",
"orgCode": "1.",
"createdTime": "1591611620",
"updatedTime": "1615352045",
"studentNum": "0",
"applyStatus": "enrollmentEnd",
"teacher": {
"id": "11",
"userName": "teacherbxZM"
}
}
],
"paging": {
"total": 1,
"offset": 0,
"limit": 10
}
}
参数说明
名称 | 类型 | 必选 | 约束 | 说明 |
---|---|---|---|---|
id | integer(int64) | false | none | none |
title | string | false | none | none |
startTime | string | false | none | none |
endTime | string | false | none | none |
enrollmentEndDate | string | false | none | none |
applyStatus | string | false | none | 申请状态(success:报名成功,enrollmentEnd:报名结束,enrollmentUnStart:暂未开始,enrollmentUnOpen:未开启报名,submitted:审核中,enrollAble:能报名,enrollUnable:名额已满,rejected:审核未通过,reset:重新报名, enrollInWeb:要在web端报名, notAvailableForYou: 暂未对您开放 |
线下课程开班详情
GET /plugins/offline_course_pro/offline_class/{id}
权限
- 需要认证
请求参数
名称 | 位置 | 类型 | 必选 | 说明 |
---|---|---|---|---|
id | path | string | true | none |
响应
json
{
"id": "1",
"templateId": "2",
"title": "测试线下课程创建-2020-05-23",
"cover": {
"large": "public://default/2020/05-23/1016066a2af2325046.jpg",
"middle": "public://default/2020/05-23/1016066a3919962259.jpg",
"small": "public://default/2020/05-23/1016066a4435315248.jpg"
},
"summary": "<p>课程简介</p>\n",
"startTime": "1590163200",
"endTime": "1590768000",
"enrollmentStartDate": "1590163200",
"enrollmentEndDate": "1590854399",
"maxStudentNum": "1",
"studentNum": "5",
"applyStatus": "join",
"itemsDetail": [
{
"title": "测试线下课程创建-2020-05-23",
"place": "1",
"targetType": "offline_course",
"targetId": "133",
"teacherName": "蒋锋二",
"startTime": "1590163200",
"endTime": "1590768000",
"studyResult": {
"submittedHomeworkNum": 0,
"homeworkNum": 5,
"signResult": "absenteeism"
},
"taskInfo": [
{
"taskId": "256",
"mediaId": "0",
"mediaType": "offlineCourseSign",
"title": "第1次签到",
"startTime": "1590161400",
"endTime": "1590769800",
"attendStatus": "absent"
},
{
"taskId": "257",
"mediaId": "0",
"mediaType": "offlineCourseSign",
"title": "第2次签到",
"startTime": "1590163200",
"endTime": "1590768000",
"attendStatus": "absent"
},
{
"taskId": "258",
"mediaId": "0",
"mediaType": "offlineCourseSign",
"title": "第3次签到",
"startTime": "1590249600",
"endTime": "1590768000",
"attendStatus": "absent"
},
{
"taskId": "259",
"mediaId": "0",
"mediaType": "offlineCourseSign",
"title": "第4次签到",
"startTime": "1590336000",
"endTime": "1590768000",
"attendStatus": "absent"
},
{
"taskId": "260",
"mediaId": "0",
"mediaType": "offlineCourseSign",
"title": "第5次签到",
"startTime": "1590422400",
"endTime": "1590768000",
"attendStatus": "absent"
},
{
"taskId": "261",
"mediaId": "0",
"mediaType": "offlineCourseSign",
"title": "第6次签到",
"startTime": "1590508800",
"endTime": "1590768000",
"attendStatus": "absent"
},
{
"taskId": "262",
"mediaId": "0",
"mediaType": "offlineCourseSign",
"title": "第7次签到",
"startTime": "1590595200",
"endTime": "1590768000",
"attendStatus": "absent"
},
{
"taskId": "263",
"mediaId": "0",
"mediaType": "offlineCourseSign",
"title": "第8次签到",
"startTime": "1590681600",
"endTime": "1590768000",
"attendStatus": "absent"
},
{
"taskId": "264",
"mediaId": "0",
"mediaType": "offlineCourseSign",
"title": "第9次签到",
"startTime": "1590768000",
"endTime": "1590768000",
"attendStatus": "absent"
},
{
"taskId": "265",
"mediaId": "0",
"mediaType": "offlineCourseSign",
"title": "第10次签到",
"startTime": "1590854400",
"endTime": "1590940800",
"attendStatus": "absent"
},
{
"title": "测试线下课程创建-2020-05-23",
"seq": "11",
"type": "offlineCourseHomework",
"homeworkDeadline": "1590768000",
"homeworkDemand": "1",
"submitStatus": "unsubmit"
},
{
"title": "测试线下课程创建-2020-05-23",
"seq": "12",
"type": "offlineCourseHomework",
"homeworkDeadline": "1590768000",
"homeworkDemand": "2",
"submitStatus": "unsubmit"
},
{
"title": "测试线下课程创建-2020-05-23",
"seq": "13",
"type": "offlineCourseHomework",
"homeworkDeadline": "1590768000",
"homeworkDemand": "3",
"submitStatus": "unsubmit"
},
{
"title": "测试线下课程创建-2020-05-23",
"seq": "14",
"type": "offlineCourseHomework",
"homeworkDeadline": "1590768000",
"homeworkDemand": "4",
"submitStatus": "unsubmit"
},
{
"title": "测试线下课程创建-2020-05-23",
"seq": "15",
"type": "offlineCourseHomework",
"homeworkDeadline": "1590768000",
"homeworkDemand": "5",
"submitStatus": "unsubmit"
}
]
},
{
"title": "线上考试",
"place": "",
"targetType": "exam",
"targetId": "325",
"teacherName": "蒋锋二",
"startTime": "1590163200",
"endTime": "1590768000",
"studyResult": {
"id": "15314",
"examId": "325",
"testPaperId": "1453",
"userId": "337",
"status": "reviewing",
"passStatus": "unpassed",
"limitedTime": "0",
"beginTime": "1590218451",
"endTime": "1590218458",
"deadline": "0",
"score": "0.0",
"objectiveScore": "0.0",
"subjectiveScore": "0.0",
"checkedUserId": "0",
"teacherSay": null,
"createdTime": "1590218451",
"updatedTime": "1590218458",
"lastScore": "0.0",
"bestScore": "1.0"
},
"taskInfo": {
"examTimeStatus": "expired",
"testPaperScore": "2.0",
"resitTimes": "0",
"remainingResitTimes": 0
}
},
{
"title": "线下考试",
"place": "1",
"targetType": "offline_exam",
"targetId": "70",
"teacherName": "蒋锋二",
"startTime": "1590163200",
"endTime": "1590854400",
"studyResult": [],
"taskInfo": []
},
{
"title": "讲师评价",
"place": "",
"targetType": "questionnaire",
"targetId": "210",
"teacherName": "蒋锋二",
"startTime": "1590201480",
"endTime": "0",
"studyResult": {
"resultStatus": "notDo"
},
"taskInfo": {
"title": "讲师评价",
"url": "http://qa2.edusoho.cn/offline_class/1/6/do/survey",
"status": "doing"
}
}
]
}
参数说明
名称 | 类型 | 必选 | 约束 | 说明 |
---|---|---|---|---|
id | integer(int64) | false | none | none |
title | string | false | none | none |
startTime | string | false | none | none |
endTime | string | false | none | none |
enrollmentEndDate | string | false | none | none |
applyStatus | string | false | none | 申请状态(success:报名成功,enrollmentEnd:报名结束,enrollmentUnStart:暂未开始,enrollmentUnOpen:未开启报名,submitted:审核中,enrollAble:能报名,enrollUnable:名额已满,rejected:审核未通过,reset:重新报名, enrollInWeb:要在web端报名, notAvailableForYou: 暂未对您开放 |
线下课程开班报名
POST /plugins/offline_course_pro/offline_class/{id}/member
权限
- 需要认证
请求参数
名称 | 位置 | 类型 | 必选 | 说明 |
---|---|---|---|---|
id | path | string | true | none |
响应
json
{
"success": true
}
线下课程开班记录列表
GET /plugins/offline_course_pro/me/offline_class_record
权限
- 需要认证
请求参数
- 无
响应
json
{
"data": [
{
"id": "128",
"title": "zhengshu-2020-09-01",
"place": "sdf",
"endTime": "1601448600",
"startTime": "1598897400",
"time": "11"
}
],
"paging": {
"total": 1,
"offset": 0,
"limit": 10
}
}