培训项目

获取更多培训项目列表

GET /project_plan

权限

  • 需要认证

响应

{
    "data": [
        {
            "id": "1",
            "name": "11111111",
            "startTime": "1518019200",
            "endTime": "1521820799",
            "status": "published",
            "summary": "",
            "cover": [],
            "itemNum": "1",
            "createdUserId": "2",
            "orgId": "1",
            "orgCode": "1.",
            "createdTime": "1518060064",
            "updatedTime": "1521008089",
            "maxStudentNum": "0",
            "requireAudit": "0",
            "enrollmentEndDate": "1518191999",
            "requireEnrollment": "1",
            "enrollmentStartDate": "1518019200",
            "categoryId": "4",
            "currentState": "ongoing",
            "categoryName": "默认分类",
            "applyStatus": "enrollmentEnd"
        },
        {
            "id": "2",
            "name": "123456",
            "startTime": "1520870400",
            "endTime": "1521561599",
            "status": "published",
            "summary": "",
            "cover": {
                "large": "public://default/2018/03-16/1650466143b3587936.png",
                "middle": "public://default/2018/03-16/16504661546c865761.png",
                "small": "public://default/2018/03-16/165046615f5b279557.png"
            },
            "itemNum": "6",
            "createdUserId": "4",
            "orgId": "1",
            "orgCode": "1.",
            "createdTime": "1520929024",
            "updatedTime": "1521190247",
            "maxStudentNum": "0",
            "requireAudit": "0",
            "enrollmentEndDate": "0",
            "requireEnrollment": "0",
            "enrollmentStartDate": "0",
            "categoryId": "4",
            "currentState": "ongoing",
            "categoryName": "默认分类",
            "applyStatus": "enrollmentUnOpen"
        }
    ],
    "paging": {
        "total": 2,
        "offset": 0,
        "limit": 10
    }
}

参数说明

字段 描述
currentState 培训项目状态:end(已结束),ongoing(进行中)

字段说明

字段 描述
id id
titile 培训项目标题
sumary 培训项目介绍
cover 培训项目封面
satrtTime 培训项目开始时间
endTime 培训项目结束时间
enrollmentEndDate 报名截止时间
studentNum 参加培训项目学员数
maxStudetNum 培训项目最大人数(0表示不限制人数)
status 活动状态(draft(草稿), published(已发布), closed(关闭))
currentState 活动当前时间状态(end:结束,ongoing:进行中,notStart:未开始)
categoryName 分类名称
applyStatus 活动申请状态(success:报名成功,enrollmentEnd:报名结束,enrollmentUnStart:暂未开始,enrollmentUnOpen:未开启报名,submitted:审核中,enrollAble:能报名,enrollUnable:名额已满,rejected:审核未通过,reset:重新报名, enrollInWeb:要在web端报名)

显示规则说明

  • 当currentState为end时显示活动已结束
  • 当currentState为ongoing时表示活动还在进行中

获取培训项目详情

GET /project_plan/{id}

权限

  • 需要认证

响应

{
    "name": "123456",
    "cover": {
        "large": "http://neiesdev.cn/files/default/2018/03-16/1650466143b3587936.png",
        "middle": "http://neiesdev.cn/files/default/2018/03-16/16504661546c865761.png",
        "small": "http://neiesdev.cn/files/default/2018/03-16/165046615f5b279557.png"
    },
    "summary": "",
    "endTime": "1521561599",
    "enrollmentEndDate": "0",
    "maxStudentNum": "0",
    "studentNum": "2",
    "categoryName": "默认分类",
    "applyStatus": "enrollmentUnOpen",
    "itemsDetail": [
        {
            "title": "1111",
            "place": "",
            "targetType": "course",
            "targetId": "1",
            "teacherName": "我是老师",
            "startTime": "1520920200",
            "endTime": "1521009900",
            "studyResult": {
                "status": "notStart",
                "totalLearnTime": 0,
                "progress": 0,
                "learnedTaskNum": 0,
                "taskNum": "3"
            },
            "taskInfo": null
        },
        {
            "title": "xianxiakecheng",
            "place": "",
            "targetType": "offline_course",
            "targetId": "1",
            "teacherName": "我是老师",
            "startTime": "1520991900",
            "endTime": "1521524700",
            "studyResult": null,
            "taskInfo": [
                {
                    "taskId": "1",
                    "mediaId": "1",
                    "mediaType": "offlineCourse",
                    "title": "xianxiazuoye",
                    "place": "ddsf",
                    "startTime": "1520991900",
                    "endTime": "1521095400",
                    "hasHomework": "0",
                    "homeworkDemand": "",
                    "homeworkDeadline": "0",
                    "attendStatus": "",
                    "homeworkStatus": "",
                    "questionnaireStatus": ""
                },
                {
                    "taskId": "2",
                    "mediaId": "1",
                    "mediaType": "offlineCourse",
                    "title": "54335",
                    "place": "43535",
                    "startTime": "1520991900",
                    "endTime": "1521524700",
                    "hasHomework": "1",
                    "homeworkDemand": "54353",
                    "homeworkDeadline": "1521523500",
                    "attendStatus": "unattended",
                    "homeworkStatus": "submitted",
                    "questionnaireStatus": ""
                },
                {
                    "taskId": "3",
                    "mediaId": "2",
                    "mediaType": "offlineCourseQuestionnaire",
                    "title": "教评",
                    "place": "",
                    "startTime": "0",
                    "endTime": "0",
                    "hasHomework": "0",
                    "homeworkDemand": null,
                    "homeworkDeadline": "0",
                    "attendStatus": "",
                    "homeworkStatus": "",
                    "questionnaireStatus": "notStart"
                }
            ]
        },
        {
            "title": "线上考试",
            "place": "",
            "targetType": "exam",
            "targetId": "7",
            "teacherName": "",
            "startTime": "1520919900",
            "endTime": "1521009900",
            "studyResult": {
                "id": "14",
                "examId": "7",
                "testPaperId": "0",
                "userId": "4",
                "status": "absent",
                "passStatus": "unpassed",
                "limitedTime": "0",
                "beginTime": "1521082954",
                "endTime": "1521009900",
                "deadline": "0",
                "score": "0.0",
                "objectiveScore": "0.0",
                "subjectiveScore": "0.0",
                "checkedUserId": "0",
                "teacherSay": null,
                "createdTime": "1521082954",
                "updatedTime": "1521082954"
            },
            "taskInfo": {
                "examTimeStatus": "expired",
                "testPaperScore": "50.0",
                "resitTimes": "0",
                "remainingResitTimes": 0
            }
        },
        {
            "title": "线下考试",
            "place": "123213",
            "targetType": "offline_exam",
            "targetId": "1",
            "teacherName": "",
            "startTime": "1520919900",
            "endTime": "1521010200",
            "studyResult": null,
            "taskInfo": null
        },
        {
            "title": "线上考试",
            "place": "",
            "targetType": "exam",
            "targetId": "8",
            "teacherName": "",
            "startTime": "1521096600",
            "endTime": "1521186600",
            "studyResult": {
                "id": "15",
                "examId": "8",
                "testPaperId": "3",
                "userId": "4",
                "status": "doing",
                "passStatus": "unpassed",
                "limitedTime": "0",
                "beginTime": "1521105398",
                "endTime": "0",
                "deadline": "0",
                "score": "0.0",
                "objectiveScore": "0.0",
                "subjectiveScore": "0.0",
                "checkedUserId": "0",
                "teacherSay": null,
                "createdTime": "1521105398",
                "updatedTime": "1521105398"
            },
            "taskInfo": {
                "examTimeStatus": "ongoing",
                "testPaperScore": "50.0",
                "resitTimes": "4",
                "remainingResitTimes": 4
            }
        },
        {
            "title": "在一个测试",
            "place": "",
            "targetType": "exam",
            "targetId": "9",
            "teacherName": "",
            "startTime": "1521095100",
            "endTime": "1521537900",
            "studyResult": null,
            "taskInfo": {
                "examTimeStatus": "ongoing",
                "testPaperScore": "10.0",
                "resitTimes": "6",
                "remainingResitTimes": 6
            }
        }
    ]
}

字段说明

字段 描述
name 培训项目名称
itemsDetail:title item名称
itemsDetail:place item地点(线下考试地址)
itemsDetail:targetType 类型(course:线上课程,offline_course:线下课程,exam:线上考试,offline_course:线下考试)
itemsDetail:targetId 表示某个类型的id
itemsDetail:teacherName 讲师名称(只有线上、线下课程有)
itemsDetail:startTime item开始时间
itemsDetail:endTime item结束时间
itemsDetail:studyResult:status notStart(未开始),ongoing(继续学习),doing(考试中),reviewing(批阅中),finished(已完成),absent(已过期)
itemsDetail:studyResult:totalLearnTime 总学习时长(秒)
itemsDetail:studyResult:progress 线上课程的学习进度
itemsDetail:studyResult:learnedTaskNum 线上课程已学任务数
itemsDetail:studyResult:taskNum 线上课程总任务数
itemsDetail:studyResult:passStatus unpassed(未通过),passed(通过)
itemsDetail:studyResult:score 得分
itemsDetail:taskInfo 任务详情
itemsDetail:taskInfo:mediaType 任务类型:offlineCourse(课时),offlineCourseQuestionnaire(评价问卷)
itemsDetail:taskInfo:mediaId 当mediaType=offlineCourseQuestionnaire,表示问卷Id
itemsDetail:taskInfo:title 任务名称
itemsDetail:taskInfo:startTime 开始时间
itemsDetail:taskInfo:endTime 结束时间
itemsDetail:taskInfo:hasHomework 是否有课后作业(0:没有作业,1:有作业)
itemsDetail:taskInfo:homeworkDemand 作业要求
itemsDetail:taskInfo:homeworkDeadline 作业提交的截止时间
itemsDetail:taskInfo:attendStatus 签到状态(unattended:未签到,attended:签到, absent:缺勤)
itemsDetail:taskInfo:homeworkStatus 作业的通过状态(submitted:已提交,unsubmit:未提交,passed:通过,unpassed:未通过)
itemsDetail:taskInfo:questionnaireStatus 问卷状态(finished:完成,notStart:未开始)
itemsDetail:taskInfo:examTimeStatus ongoing:在考试时间内,notStart:未开始, expired:已过期(判断有没有考试结果,没有结果的话根据这个状态显示;有考试结果,看是否还有考试机会,时间是否在考试时间段内)
itemsDetail:taskInfo:resitTimes 线上考试的设置的考试次数(0表示无限次)
itemsDetail:taskInfo:remainingResitTimes 线上考试剩余的有效考试次数
itemsDetail:taskInfo:testPaperScore 试卷总分

获取培训项目计划

GET /project_plan/{projectPlanId}/item

权限

  • 不需要认证

参数

字段 描述
targetId targetId
targetType targetType(course,offline_course,exam,offline_exam)

响应

[
    {
        "id": "1",
        "courseId": "1",
        "seq": "1",
        "categoryId": null,
        "activityId": "4",
        "title": "1323",
        "isFree": "0",
        "isOptional": "0",
        "startTime": "0",
        "endTime": "0",
        "mode": null,
        "status": "published",
        "number": "1",
        "type": "text",
        "mediaSource": "",
        "maxOnlineNum": "0",
        "fromCourseSetId": "1",
        "length": "0",
        "copyId": "0",
        "createdUserId": "4",
        "createdTime": "1521445293",
        "updatedTime": "1521445296"
    }
]
[
    {
        "id": "1",
        "offlineCourseId": "1",
        "activityId": "1",
        "type": "offlineCourse",
        "title": "xianxiazuoye",
        "seq": "1",
        "place": "ddsf",
        "hasHomework": "0",
        "homeworkDeadline": "0",
        "homeworkDemand": "",
        "creator": "4",
        "orgId": "0",
        "startTime": "1520991900",
        "endTime": "1521095400",
        "createdTime": "1521009287",
        "updatedTime": "1521009287"
    },
    {
        "id": "2",
        "offlineCourseId": "1",
        "activityId": "2",
        "type": "offlineCourse",
        "title": "54335",
        "seq": "2",
        "place": "43535",
        "hasHomework": "1",
        "homeworkDeadline": "1521523500",
        "homeworkDemand": "54353",
        "creator": "4",
        "orgId": "0",
        "startTime": "1520991900",
        "endTime": "1521524700",
        "createdTime": "1521009441",
        "updatedTime": "1521009441"
    },
    {
        "id": "3",
        "offlineCourseId": "1",
        "activityId": "3",
        "type": "questionnaire",
        "title": "教评",
        "seq": "3",
        "place": "",
        "hasHomework": "0",
        "homeworkDeadline": "0",
        "homeworkDemand": null,
        "creator": "4",
        "orgId": "0",
        "startTime": "0",
        "endTime": "0",
        "createdTime": "1521083959",
        "updatedTime": "1521083959"
    }
]
{
    "id": "8",
    "name": "线上考试",
    "type": "grade",
    "orgId": "1",
    "testPaperId": "3",
    "projectPlanId": "2",
    "status": "published",
    "startTime": "1521096600",
    "endTime": "1521186600",
    "length": "0",
    "passScore": "10.0",
    "memberNum": "2",
    "resitTimes": "4",
    "createdUserId": "4",
    "showAnswerAndAnalysis": "0",
    "createdTime": "1521099475",
    "updatedTime": "1521105531"
}
{
    "id": "1",
    "projectPlanId": "2",
    "title": "线下考试",
    "summary": null,
    "place": "2313123",
    "status": "published",
    "score": "100.0",
    "passScore": "60.0",
    "creator": null,
    "startTime": "1520919900",
    "endTime": "1521010200",
    "createdTime": "1520929132",
    "updatedTime": "1520929132"
}

报名线下活动

POST /project_plan/{projectPlanId}/members

权限

  • 需要认证

响应

字段说明

字段 描述
result true:报名成功,false:报名失败
{
    "result": true
}

results matching ""

    No results matching ""