mindpin / kc_courses

MIT License
0 stars 6 forks source link

新学习进度读取API #50

Closed destinyd closed 8 years ago

destinyd commented 8 years ago

image 由于实现的内容稍有区别,API需要有些小改动

新课程读取学习进度 的 HTTP API

url 
  /api/courses/:id/progress
method
  get
params
  id(课程id)
response
  {
    id: "",
    spent_time: 88, //花费时间(秒)
    str_spent_time: '1分钟', //花费时间,字符串显示
    last_studied_at: "2015-12-15T17:20:13.486+08:00",
    current_ware: {
      id: "", //当前课程正在学习课件的id
      title: "", //标题
    },
    title: "", //标题
    percent: 0~100,
    chapters: [
      {
        id: "",
        title: "",
        percent: 0~100,
        wares: [
          {
            id: "",
            title: "",
            percent: 0~100
          }
        ]
      }
    ]
  }