import { request } from '@/utils/http' //我的学习清单 export function myStudy() { return request.http({ url: '/api/huiqitong/my_study', method: 'GET' }) } //学习中心列表 export function studyCenter(recommend: string, title: string, type: string, page: string, limit: string) { return request.http({ url: '/api/huiqitong/study_center?recommend=' + recommend + '&title=' + title + '&category_id=' + type + '&page=' + page + '&limit=' + limit, method: 'GET' }) } //学习中心详情 export function studyCenterDetail(id: string) { return request.http({ url: '/api/huiqitong/study_center/' + id, method: 'GET' }) } //收藏学习 export function collect(data: { item_id: string }) { return request.http({ url: '/api/huiqitong/collect', method: 'POST', data }) } //取消收藏 export function removeCollect(data: { item_id: string }) { return request.http({ url: '/api/huiqitong/remove_collect', method: 'POST', data }) } //增加观看次数 export function watchCount(data: { id: string }) { return request.http({ url: '/api/huiqitong/watch_count', method: 'POST', data }) } //观看进度记录 export function studyRecord(data: any) { return request.http({ url: '/api/huiqitong/study_record', method: 'POST', data }) } //是否收藏 export function isCollect(data: any) { return request.http({ url: '/api/huiqitong/is_collect', method: 'POST', data }) } //学习中心分类 export function studyCenterCategory() { return request.http({ url: '/api/huiqitong/study_center_category', method: 'GET' }) }