医学道
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
video/types/curriculum.d.ts

83 lines
1.4 KiB

1 year ago
interface Curriculum {
id: number;
title: string;
charge: number;
/** 课时 */
class_hour: number;
created_at: string;
is_required: number;
is_show: number;
/** 描述 */
short_desc: string;
/** 课程封面 */
thumb: string;
}
/** 课程信息 */
interface Deparments {
id: number
/** 公司id */
company_id: number
name: string
parent_chain: string
parent_id: number
sort: number
users: unknown
}
/** 学习记录 */
interface Hour {
id: number
sort: number
/** 课程视频名称 */
title: string
type: string
/** 视频id */
rid: number
/** 视频时长 */
duration: number
/** 课程id */
course_id: number;
/** 章节id */
chapter_id: number
}
type Hours = Record<number, Hour[]>
/** 章节 */
interface Chapters {
id: number
course_id: number
name: string
sort: number
}
/** 视频播放记录 */
interface LearnHourRecord {
course_id: number
/** 完成时间 */
finished_duration: number
/** 课时id */
hour_id: number
id: number
/** 是否完成 */
is_finished: number
real_duration: number
total_duration: number
user_id: 17
}
type LearnHourRecords = Record<number, LearnHourRecord>
/** 课程学习情况 */
interface LearnRecord {
id: number
course_id: number
finished_count: number
hour_count: number
is_finished: number
progress: number
user_id: number
}