import Request from '../common/request.js';
let request = new Request().http
export function courseList() {
 	 return request('/course_auto/app/course/getAppletCourse',null,'GET');
 }
 // 课程详情
 export function courseDetails() {
 	 return request('/course_auto/app/course/getH5CourseByVideoId',data,'GET');
 }
 export function courseListB() {
 	 return request('/course_auto/app/course/getPrivateCourse',null,'GET');
 }
//最新学习
 export function getCourseStudyList(data) {
 	 return request('/publicApp/app/course/getCourseStudyList',data,'GET');
 }
 //课程学习详情
 export function getCourseDetail(data) {
 	 return request('/publicApp/app/course/getCourseById',data,'GET');
 }
 
 //课程目录
 export function getCourseVideoList(data) {
 	 return request('/publicApp/app/course/getCourseVideoList',data,'GET');
 }
 //新增课程记录
 export function addStudyCourse(data) {
 	 return request('/publicApp/app/course/addStudyCourse',data,'POST','application/json;charset=UTF-8');
 }
 //课程评论列表
 export function getCommentList(data) {
 	 return request('/publicApp/store/app/course/comment/list',data,'GET');
 }
 //课程题目
 export function videoDetails(data) {
 	 return request('/publicApp/app/course/videoDetails',data,'GET');
 }
 //新增评论
 export function addCommentt(data) {
 	 return request('/publicApp/store/app/course/comment/addComment',data,'POST','application/json;charset=UTF-8');
 }
 /** 答题状态（status：1未答题 2可答题 3已达上限 4已完成） */
 export function courseAnswerStatus(data) {
 	 return request('/publicApp/app/course/publicCourseAnswer/status',data,'GET');
 }
 //答题提交
 export function courseAnswer(data) {
 	 return request('/publicApp/app/course/publicCourseAnswer',data,'POST','application/json;charset=UTF-8');
 }
 /** 答题奖励领取积分 */
 export function claimCourseAnswerIntegral(data) {
 	 return request('/publicApp/app/course/publicCourseAnswer/claimIntegral',data,'POST','application/json;charset=UTF-8');
 }
 // 流量(缓冲百分比)
 export function getInternetTraffic(data) {
 	return request('/publicApp/app/course/getInternetTraffic', data, 'POST', 'application/json;charset=UTF-8');
 }
 
 /** @deprecated 使用 claimCourseAnswerIntegral */
 export const getIntegral = claimCourseAnswerIntegral;