/*
 * @Author: lixg lixg@dongwu-inc.com
 * @Date: 2023-01-13 11:42:48
 * @LastEditors: lixg lixg@dongwu-inc.com
 * @LastEditTime: 2023-03-17 09:44:50
 * @FilePath: /stu_h5/src/api/api.js
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
export const BASE = 'http://localhost:3000'
export const LOGIN = '/admin/CheckUser/userLogin post'
export const USER_INFO = '/admin/CheckUser/userInfo'
export const FILE_UPLOAD = import.meta.env.VITE_BASE_API + '/file/uploadunlimit'
export const ROUTER_CHAPTER_LIST = '/stu/router/chapterList post'
export const ROUTER_LIST = '/stu/router/list post'
export const ROUTER_PROCESS = '/stu/router/process'
export const ROUTER_UNCOMPLETE_LIST = '/stu/router/unCompleteTaskList'
export const TAS_ACTIVITY_DETAIL = '/stu/task/activity/detail'
export const TASK_ACTIVITY_SIGN = '/stu/task/activity/sign post'
export const TASK_BROADCAST_COMMIT = '/stu/task/broadcast/commit'
export const TASK_BROADCAST_DETAIL = '/liveBroadcast'
export const TASK_BROADCAST_SIGN = '/stu/task/broadcast/sign post'
export const TASK_VOTE_COMMIT = '/stu/task/vote/commit'
export const TASK_VOTE_DETAIL = '/stu/task/vote/detail'
export const TASK_WORK_COMMIT = '/workSubmit/submitStudentWorkDetail post'
export const TASK_WORK_DETAIL = '/workSubmit/getWorkDetailByTaskId'
export const STU_OFFCOURSE_DETAIL = '/stu/offcourse/detail post'
export const COURSE_DETAIL = '/stu/offcourse/courseInfo'
export const WORK_QUERYWORKDETAILBYID = '/work/queryWorkDetailById'
export const EXAMINATION_QUERYEXAMINATIONDETAILBYID = '/examination/queryExaminationDetailById'
export const DISCUSS_COLLECTION = '/discussSubmit/clickDiscussCollectionCountOr POST'
export const ACTIVITY = '/activity'
export const EXAMINATION_QUERY = examinationId => `/examination/queryExaminationDetailById?examinationId=${examinationId} post`
export const TASK_OFFCOURSE_NOTASK_SIGN = '/stu/task/offcourse/notask/sign post'
export const TASK_OFFCOURSE_SIGN = '/stu/task/offcourse/sign post'
export const LINK_DETAILS = `/link/getOne`
export const STUDY_RECORD = '/stu/task/thirdTask/submit post'
export const TASK_WORK_SUBMIT_LIST = '/workSubmit/queryWorkSubmitDetailById'
export const SUB_STUDENT_DETAIL = `/workSubmit/submitStudentNoWorkDetail post`
export const WORK_HISTROY = '/workSubmit/queryWorkDetailListByStuId'
export const ASSESSMENT_QUERY = assessmentId => `/stu/task/queryAssessmentDetailById`
export const ASSESSMENT_SUBMIT = '/stu/task/evaluate/commit post'
export const TASK_NO_COMMIT = `/stu/task/evaluate/nocommit post`
export const FILE_UPLOAD_ANNEX = import.meta.env.VITE_BASE_API + '/file/stuUploadAnnex'
export const ROUTER_DETAILS = '/admin/router/detail'
export const TASK_LIST = '/stu/tasks'
export const ONLINE_PROCESS = '/onlineClasses/queryOnlineClassesStudyDetail post'
export const PROJECT_PROCESS = '/stu/project/process'
export const EVALUATION_DETAIL = `/evaluation/queryEvaluationDetailById`
export const DISCUSS_LIKE = '/discussSubmit/clickDiscussLikeCountOr post'
export const DISCUSS_LIST = '/discussSubmit/taskList'
export const DISCUSS_DETAIL = '/discussSubmit/detail'
export const DISCUSS_SUBMIT_REVIEW_LIST = '/discussSubmit/queryDiscussSubmitAndReview'
export const VOTE_DETAIL2 = `/vote/queryVoteById`
export const VOTE_DETAIL3 = `/vote/queryVoteById`
// 投票详情接口
export const VOTE_DETAIL_SUBMIT = `voteSubmit/vote/commit post`

// 讨论模块
// -- 根据讨论的Id查询讨论发表的帖子
export const QueryDiscussSubmitDetailByDiscussId = '/discussSubmit/queryDiscussSubmitDetailByDiscussId post'
export const COMMENT_COLLECTION = '/comment/collection post'
// 查询讨论下的帖子
export const PostList = `/statement/list`
// 发表帖子
export const PostAdd = `/statement/add post`
// 贴子点赞
export const PostPraise = `/statement/praise`
// 帖子详情查询
export const PostDetails = `/statement/info`

export const COMMENT_LIST = '/comment/list'
export const COMMENT_PRAISE = '/comment/praise'
export const COMMENT_ADD = '/comment/add post'

// 外部考试详情接口
export const EXTERNALEXAM = `/external/exam/queryExternalExam`
//关卡列表接口
export const ROUTERTASK_LIST = '/stu/router/chapterList'
//获取项目详情
export const PROJECT_DETAIL = '/admin/project/detail'

export const FACETEACH_SIGNUP = `/stu/project/stuFaceTeachSignUp`
// 外部考试点击去完成调用
export const SubmitExternalExam = `/stu/externalExam/submitExternalExam post`
export const UPDATE_CURRENT_TASK = `/admin/student/updateCurrentTask post`
// 测评任务去学习
export const EvaluationToLearn = '/evaluation/evaluationToLearn post'
export const FILE_UPLOAD_IMG = import.meta.env.VITE_BASE_API + '/file/img'
// 查询单个测评的状态 
export const QueryEvaluationTaskStatusOne = `/evaluation/queryEvaluationTaskStatusOne`
// 投票浏览和参与数目
export const EditVoteInvolvedAndBrowse = `/vote/editVoteInvolvedAndBrowse post`
export const NO_COMMIT = `/voteSubmit/vote/nocommit post`
//任务是否删除
export const checkStudentExist = `/admin/taskmanage/checkStudentExist post`