123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142 |
- import { http } from '@/utils/http';
- /**
- * 分页查询练习题列表
- */
- export function PageQueryExerciseList(data) {
- return http.post(`/TeachingServer/ExerciseManager/PageQueryExerciseList`, data);
- }
- /**
- * 新建练习题
- */
- export function CreateExercise(data) {
- return http.post(`/TeachingServer/ExerciseManager/CreateExercise`, data);
- }
- /**
- * 得到练习题信息
- * @param {object} data
- * @param {string} data.exercise_id 练习题id
- * @returns {object} data
- * @returns {string} data.exercise 练习题信息
- */
- export function GetExerciseInfo(data) {
- return http.post(`/TeachingServer/ExerciseManager/GetExerciseInfo`, data);
- }
- /**
- * 更新练习题
- */
- export function UpdateExercise(data) {
- return http.post(`/TeachingServer/ExerciseManager/UpdateExercise`, data);
- }
- /**
- * 删除练习题
- * @param {object} data
- * @param {string} data.exercise_id 练习题id
- */
- export function DeleteExercise(data) {
- return http.post(`/TeachingServer/ExerciseManager/DeleteExercise`, data);
- }
- /**
- * 得到标签列表
- * @param {object} data
- * @param {string} data.store_type 标签名称
- */
- export function GetLabelList(data) {
- return http.post(`/TeachingServer/ExerciseManager/GetLabelList`, data);
- }
- /**
- * 添加题目到练习
- */
- export function AddQuestionToExercise(data) {
- return http.post(`/TeachingServer/ExerciseManager/AddQuestionToExercise`, data);
- }
- /**
- * 保存题目
- */
- export function SaveQuestion(data) {
- return http.post(`/TeachingServer/ExerciseManager/SaveQuestion`, data);
- }
- /**
- * 得到练习的题目索引列表
- */
- export function GetExerciseQuestionIndexList(data) {
- return http.post(`/TeachingServer/ExerciseManager/GetExerciseQuestionIndexList`, data);
- }
- /**
- * 得到题目
- * @param {object} data
- * @param {string} data.question_id 题目id
- */
- export function GetQuestionInfo(data) {
- return http.post(`/TeachingServer/ExerciseManager/GetQuestionInfo`, data);
- }
- /**
- * 删除题目
- * @param {object} data
- * @param {string} data.question_id 题目id
- */
- export function DeleteQuestion(data) {
- return http.post(`/TeachingServer/ExerciseManager/DeleteQuestion`, data);
- }
- /**
- * 创建分享记录
- */
- export function CreateShareRecord(data) {
- return http.post(`/TeachingServer/ExerciseManager/CreateShareRecord`, data);
- }
- /**
- * 复制练习题到公共库
- */
- export function CopyExerciseToPublicStore(data) {
- return http.post(`/TeachingServer/ExerciseManager/CopyExerciseToPublicStore`, data);
- }
- /**
- * 复制练习题到个人库
- */
- export function CopyExerciseToPersonalStore(data) {
- return http.post(`/TeachingServer/ExerciseManager/CopyExerciseToPersonalStore`, data);
- }
- /**
- * 分页查询练习题分享记录列表
- */
- export function PageQueryExerciseShareRecordList(data) {
- return http.post(`/TeachingServer/ExerciseManager/PageQueryExerciseShareRecordList`, data);
- }
- /**
- * 分页查询练习题用户答题记录列表
- */
- export function PageQueryExerciseUserAnswerRecordList(data) {
- return http.post(`/TeachingServer/ExerciseManager/PageQueryExerciseUserAnswerRecordList`, data);
- }
- /**
- * 得到我的课程列表(教师)
- */
- export function GetMyCourseList_Teacher(data) {
- return http.post(
- `${process.env.VUE_APP_LearnWebSI}?MethodName=teaching-course_manager-GetMyCourseList_Teacher`,
- data,
- );
- }
- /**
- * 得到课程学员列表
- */
- export function GetCourseStudentList(data) {
- return http.post(`${process.env.VUE_APP_LearnWebSI}?MethodName=teaching-course_manager-GetCourseStudentList`, data);
- }
|