Skip to content

我的

获取当前用户培训记录

GET /me/training_records

权限

  • 需要认证

响应

成功响应

json
[
    {
        "type": "projectPlan",
        "assignNum": 4,
        "finishedNum": 0
    },
    {
        "type": "postCourse",
        "assignNum": 0,
        "finishedNum": 0
    },
    {
        "type": "exam",
        "assignNum": 6,
        "finishedNum": 3
    },
    {
        "type": "offlineActivity",
        "assignNum": 1,
        "finishedNum": 1
    }
]

说明

字段描述
type培训类型
assignNum该类型任务指派给当前用户的个数
finishedNum当前用户完成该类型任务的个数

专项考试列表

GET  plugins/exam/me/exam_records
json
{
    "data": [
        {
            "id": "9",
            "examId": "4",
            "status": "finished",
            "passStatus": "passed",
            "examName": "题空题考试",
            "examType": "grade",
            "testPaperScore": "50.0",
            "startTime": "1519807800",
            "endTime": "1521276300",
            "score": "0.0"
        },
        {
            "id": "12",
            "examId": "5",
            "status": "finished",
            "passStatus": "passed",
            "examName": "测试考试次数",
            "examType": "grade",
            "testPaperScore": "50.0",
            "startTime": "1519809480",
            "endTime": "1520679000",
            "score": "0.0"
        },
        {
            "id": "15",
            "examId": "6",
            "status": "absent",
            "passStatus": "unpassed",
            "examName": "123",
            "examType": "grade",
            "testPaperScore": "10.0",
            "startTime": "1519871580",
            "endTime": "1521524700",
            "score": "0.0"
        },
        {
            "id": "24",
            "examId": "2",
            "status": "absent",
            "passStatus": "unpassed",
            "examName": "ceshiyixia",
            "examType": "fullMark",
            "testPaperScore": "16.0",
            "startTime": "1518147900",
            "endTime": "1518590700",
            "score": "0.0"
        },
        {
            "id": "27",
            "examId": "13",
            "status": "finished",
            "passStatus": "passed",
            "examName": "1111",
            "examType": "grade",
            "testPaperScore": "10.0",
            "startTime": "1522119360",
            "endTime": "1522205400",
            "score": "6.0"
        },
        {
            "id": "30",
            "examId": "14",
            "status": "finished",
            "passStatus": "passed",
            "examName": "必过考试",
            "examType": "fullMark",
            "testPaperScore": "50.0",
            "startTime": "1522129680",
            "endTime": "1522216200",
            "score": "0.0"
        },
        {
            "id": "31",
            "examId": "15",
            "status": "finished",
            "passStatus": "passed",
            "examName": "必过",
            "examType": "fullMark",
            "testPaperScore": "2.0",
            "startTime": "1522130100",
            "endTime": "1522392600",
            "score": "0.0"
        }
    ],
    "paging": {
        "total": 7,
        "offset": 0,
        "limit": 10
    }
}

响应

成功响应examList结构体

字段描述
examId string考试ID
examName string考试名称
examType string考试类型(grade:评分考试,fullMark:必过考试)
status string考试状态(notStart:未开始,doing:考试中,reviewing:批阅中,finished:已完成,absent:缺考)
startTime考试开始时间
endTime考试结束时间
passStatus string考试通过状态(passed:通过,unpassed:未通过)
testPaperScore考试试卷总分
score考试得分

活动列表

GET me/offline_activity_record
json
{
    "data": [
        {
            "attendedStatus": "none",
            "passedStatus": "none",
            "offlineActivityName": "测试活动",
            "offlineActivityPlace": "但是是否收到",
            "startTime": "1522140600",
            "endTime": "1522313100",
            "categoryName": "默认分类"
        }
    ],
    "paging": {
        "total": 1,
        "offset": 0,
        "limit": 10
    }
}

响应

成功响应offlineActivityList结构体

字段描述
attendedStatus string考勤状态(attended:已签到,unattended:缺勤,none:未考勤)
passedStatus string通过状态(passed:通过,unpassed:未通过,none:没有结果)
offlineActivityName string线下活动名称
offlineActivityPlace string线下活动地址
startTime活动开始时间
endTime活动结束时间
categoryName string活动分类名称

岗位课程列表

GET me/post_course_record
json
{
    "data": [
        {
            "courseName": "测试课程",
            "teacherName": "admin",
            "totalLearnTime": 0,
            "progress": 0
        },
        {
            "courseName": "1111",
            "teacherName": "admin",
            "totalLearnTime": "1612",
            "progress": 100
        }
    ],
    "paging": {
        "total": 2,
        "offset": 0,
        "limit": 10
    }
}

响应

成功响应postCourseList结构体

字段描述
courseName string岗位课程名称
teacherName string讲师名称
totalLearnTime学习时长(单位:秒)
progress学习进度(例:100)

培训项目列表

GET me/project_plan_record
json
{
    "data": [
        {
            "projectPlanName": "培训项目5",
            "startTime": "1521648000",
            "endTime": "1522511999",
            "progress": 50
        },
        {
            "projectPlanName": "测试培训项目ID=4",
            "startTime": "1521648000",
            "endTime": "1522511999",
            "progress": 0
        },
        {
            "projectPlanName": "123456",
            "startTime": "1520870400",
            "endTime": "1521561599",
            "progress": 17
        },
        {
            "projectPlanName": "11111111",
            "startTime": "1518019200",
            "endTime": "1521820799",
            "progress": 100
        }
    ],
    "paging": {
        "total": 4,
        "offset": 0,
        "limit": 10
    }
}

成功响应projectPlanList结构体

字段描述
projectPlanName string培训项目名称
startTime开始时间
endTime结束时间
progress学习进度(例:50)