Skip to content

获取单个教学计划

GET /courses/{id}

权限

  • 不需要认证用户

响应

成功响应Course结构体

字段描述
id int string教学计划ID
courseSet SimpleCourseSet课程
title string教学计划标题
learnMode string学习模式
learningExpiryDate ExpiryDate学习有效期
summary string教学计划简介
goals list<string>教学计划目标
audiences list<string>教学计划适合人群
isDefault int string是否是默认教学计划
maxStudentNum int string最大允许加入学员
status string教学计划状态
creator SimpleUser教学计划创建者
isFree int string是否免费
price float string价格
originPrice float string价格
enableFinish bool是否允许学员强制完成任务, 1:表示不限制 0:表示限制
vipLevelId int stringvipId
tryLookable int string是否允许试看
tryLookLength int string允许试看时长
watchLimit int string观看次数
services list<Service>承诺服务
taskNum int string总任务数
publishedTaskNum int string发布的任务数
studentNum int string学员数
teachers list<SimpleUser>教师
parentId int string父计划ID
createdTime datetime创建时间
updatedTime datetime最后更新时间
access Access是否可加入课程 success:可以加入 user.not_login:用户未登录 user.locked:用户被锁 course.unpublished:课程未发布 course.closed:课程已关闭 course.not_buyable:课程被设置不可加入 course.buy_expired:购买有效期已过 course.expired:学习有效期已过 course.only_vip_join_way:只能通过VIP加入

ExpiryDate结构体

字段描述
expired bool是否已过期
expiryMode enum{days,date}教学计划到期模式 days:指定天数后过期 date:指定的时间过期
expiryDays int string到期天数
expiryStartDate datetime到期开始时间
expiryEndDate datetime到期结束时间

Service

Service结构体

字段描述
code string服务编码
shortName string短名称
fullName string长名称
summary string描述信息

Access

Access结构体

字段描述
code string编码
msg string信息

错误

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

Code错误说明HTTP状态码
10教学计划不存在404