提交 1a508cf6 authored 作者: 王鹏飞's avatar 王鹏飞

chore update

上级 8cacdf0e
...@@ -6,12 +6,25 @@ export function getCourseRecommendList(params?: { name?: string; page?: number; ...@@ -6,12 +6,25 @@ export function getCourseRecommendList(params?: { name?: string; page?: number;
} }
// 创建推荐课程 // 创建推荐课程
export function createCourseRecommend(data: { name: string; cover: string; weight?: string }) { export function createCourseRecommend(data: {
name: string
cover: string
is_free: string
url: string
weight?: string
}) {
return httpRequest.post('/api/psp/backend/recommend-course/create', data) return httpRequest.post('/api/psp/backend/recommend-course/create', data)
} }
// 更新推荐课程 // 更新推荐课程
export function updateCourseRecommend(data: { id: string; name: string; cover: string; weight?: string }) { export function updateCourseRecommend(data: {
id: string
name: string
cover: string
is_free: string
url: string
weight?: string
}) {
return httpRequest.post('/api/psp/backend/recommend-course/update', data) return httpRequest.post('/api/psp/backend/recommend-course/update', data)
} }
......
...@@ -12,7 +12,6 @@ export function createLecturer(data: { ...@@ -12,7 +12,6 @@ export function createLecturer(data: {
type: string type: string
title: string title: string
office: string office: string
url: string
weight?: string weight?: string
}) { }) {
return httpRequest.post('/api/psp/backend/lecturer/create', data) return httpRequest.post('/api/psp/backend/lecturer/create', data)
...@@ -26,7 +25,6 @@ export function updateLecturer(data: { ...@@ -26,7 +25,6 @@ export function updateLecturer(data: {
type: string type: string
title: string title: string
office: string office: string
url: string
weight?: string weight?: string
}) { }) {
return httpRequest.post('/api/psp/backend/lecturer/update', data) return httpRequest.post('/api/psp/backend/lecturer/update', data)
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论