41 lines
840 B
JavaScript
41 lines
840 B
JavaScript
const http = require('../utils/request')
|
|
|
|
/** 分页查询团课 */
|
|
function getCoursesByPage(params) {
|
|
return http.post('/groupCourse/page', params)
|
|
}
|
|
|
|
/** 获取课程详情 */
|
|
function getCourseDetail(id) {
|
|
return http.get('/groupCourse/' + id + '/detail')
|
|
}
|
|
|
|
/** 获取团课类型列表 */
|
|
function getCourseTypes() {
|
|
return http.get('/groupCourse/types')
|
|
}
|
|
|
|
/** 获取课程标签 */
|
|
function getCourseLabels() {
|
|
return http.get('/groupCourse/labels')
|
|
}
|
|
|
|
/** 获取活跃推荐课程 */
|
|
function getActiveRecommendations() {
|
|
return http.get('/groupCourse/recommend/active')
|
|
}
|
|
|
|
/** 搜索团课 */
|
|
function searchCourses(params) {
|
|
return http.post('/groupCourse/search', params)
|
|
}
|
|
|
|
module.exports = {
|
|
getCoursesByPage,
|
|
getCourseDetail,
|
|
getCourseTypes,
|
|
getCourseLabels,
|
|
getActiveRecommendations,
|
|
searchCourses
|
|
}
|