import { post, get } from '@/utils/request'

// 课程栏目管理
// 后台查询课程栏目列表
export const getCourseColumnList = (params) => post('/admin/course/column/list', params)
// 后台保存课程栏目
export const saveCourseColumn = (params) => post('/admin/course/column/save', params)
// 后台更新课程栏目
export const updateCourseColumn = (params) => post('/admin/course/column/update', params)
// 后台查询课程栏目详情
export const getCourseColumnDetail = (params) => get('/admin/course/column/get', params)

// 课程
// 后台查询课程列表
export const getCourseList = (params) => post('/admin/course/info/list', params)
// 后台保存课程
export const saveCourse = (params) => post('/admin/course/info/save', params)
// 后台更新课程
export const updateCourse = (params) => post('/admin/course/info/update', params)
// 后台更新课程状态
export const updateCourseStatus = (params) => post('/admin/course/info/updateStatus', params)
// 后台查询课程详情
export const getCourseDetails = (params) => get('/admin/course/info/get', params)

export const getCourseContentList = (params) => post('/admin/course/content/list', params)
export const saveCourseContent = (params) => post('/admin/course/content/update', params)
export const getCourseContent = (params) => post('/admin/course/info/get', params)

// 投资课堂
// 后台查询投资课堂列表
export const getCourseCollectionList = (params) => post('/admin/course/package/list', params)
// 后台保存投资课堂
export const saveCourseCollection = (params) => post('/admin/course/package/save', params)
// 后台更新投资课堂
export const updateCourseCollection = (params) => post('/admin/course/package/update', params)
// 后台更新投资课堂状态
export const updateCourseCollectionStatus = (params) => post('/admin/course/package/updateStatus', params)
// 后台查询投资课堂详情
export const getCourseCollectionDetails = (params) => get('/admin/course/package/get', params)
// 投资课堂查询课程列表
export const queryByCourseCollection = (params) => post('/admin/course/info/queryByCoursePackage', params)
// 后台课程加入投资课堂
export const addOrSubInCourseCollection = (params) => post('/admin/course/info/addOrSubInPackage', params)
// 后台修改在投资课堂内是否显示
export const updateDisplayInPackage = (params) => post('/admin/course/info/updateDisplayInPackage', params)
// 修改投资课堂排序
export const updateSort = (params) => post('/admin/course/info/updateSort', params)

// 设置首页参数
export const setMainPageParam = (params) => post('/admin/course/info/setMainPageParam', params)
