| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960 |
- import { createPost } from "@/utils/api";
- /**
- * 导学课程信息获取
- *
- * [API](https://yapi.pri.ibanyu.com/project/37/interface/api/48071)
- */
- export const getGuideInf = createPost("/media/rcusercourse/guide/lesson/get");
- export type GuideInfData = Awaited<ReturnType<typeof getGuideInf>>;
- /**
- * 录播课用户课程列表
- *
- * [API](https://yapi.pri.ibanyu.com/project/37/interface/api/48116)
- */
- export const getCourseList = createPost("/media/rcusercourse/user/course/list");
- export type CourseList = Awaited<
- ReturnType<typeof getCourseList>
- >["ent"]["items"];
- export type TeacherInfo = Awaited<
- ReturnType<typeof getCourseList>
- >["ent"]["teacherinfo"];
- /**
- * 录播课用户课节列表
- *
- * [API](https://yapi.pri.ibanyu.com/project/37/interface/api/48089)
- */
- export const getLessonList = createPost("/media/rcusercourse/user/lesson/list");
- export type LessonListData = Awaited<ReturnType<typeof getLessonList>>["ent"];
- /**
- * 录播课用户课节获取
- *
- * [API](https://yapi.pri.ibanyu.com/project/37/interface/api/48098)
- */
- export const getLessonDetail = createPost(
- "/media/rcusercourse/user/lesson/detail"
- );
- export type UnitContent = ParsedUnitContent;
- /**
- * 录播课用户课节状态设置
- *
- * [API](https://yapi.pri.ibanyu.com/project/37/interface/api/48107)
- */
- export const setModuleStatus = createPost(
- "/media/rcusercourse/user/lesson/status/set"
- );
- /**
- * 录播课用户主观作业信息
- *
- * [API](https://yapi.pri.ibanyu.com/project/37/interface/api/48530)
- */
- export const getSubjectiveHomeworks = createPost(
- "/media/rchomework/user/subwork/list"
- );
|