Skip to content

用户线上课程数据

GET /datas/user_data/user_course

权限

  • 需要认证

请求参数

字段类型必选描述示例
userIdint用户ID1
courseIdint线上课程ID1
categoryCodestring线上课程分类编码FLX
tagNamestring线上课程标签编码标签
courseCreatedTimestring线上课程创建时间2021-06-29 00:00:00 - 2021-06-29 12:00:00
userJoinedTimestring线上课程加入时间2021-06-29 00:00:00 - 2021-06-29 12:00:00
offsetint分页偏离量0
limitint分页数量100

响应

json
{
  "data": [
    {
      "courseId": "1184",
      "learnedCompulsoryTaskNum": "1",
      "credit": 0,
      "finishedTime": "2021-11-11T13:25:53+08:00",
      "courseJoinedTime": "2021-11-11T13:23:40+08:00",
      "title": "1111111111111",
      "categoryId": "0",
      "tags": [],
      "courseCreatedTime": "2021-11-09T16:21:02+08:00",
      "requiredTasksNum": "1",
      "learnTime": "420",
      "CertificateRecord": [
        {
          "name": "113",
          "certificateCode": "321eqw",
          "status": "valid",
          "deadline": 0,
          "issueDate": "2021-11-19T15:38:13+08:00"
        }
      ],
      "requiredTaskCompletion": "100%"
    }
  ],
  "paging": {
    "total": 1,
    "offset": 0,
    "limit": 100
  }
}

字段说明

字段类型描述
courseIdint string课程ID
learnedCompulsoryTaskNumint string课程(必修)任务完成数
creditint string获得的学分
finishedTimestring课程完成时间
courseJoinedTimestring学员加入时间
titlestring课程名称
categoryIdint string课程分类编码
tagsobject课程标签编码
courseCreatedTimestring课程创建时间
requiredTasksNumint string课程(必修)任务数
learnTimeint string学习时长(秒)
CertificateRecordCertificateRecord结构体获得证书编码与名称
requiredTaskCompletionstring课程完成率

CertificateRecord结构体

字段类型描述
namestring证书名称
certificateCodestring证书编码
statusstring证书状态 valid 有效,cancelled 作废, none 待审核
deadlineint string证书有效期
issueDatestring证书发放日期

错误

失败响应Error结构体,错误码有

Code错误说明HTTP状态码
10用户不存在404