20200525-zlp-1

培训
This commit is contained in:
paidaxing444
2020-05-25 23:28:38 +08:00
parent 8fab73eb25
commit 7da94c38c0
4 changed files with 888 additions and 0 deletions

View File

@ -0,0 +1,53 @@
import request from '@/utils/request'
// 查询讲师列表
export function listLecturer(query) {
return request({
url: '/benyi/lecturer/list',
method: 'get',
params: query
})
}
// 查询讲师详细
export function getLecturer(id) {
return request({
url: '/benyi/lecturer/' + id,
method: 'get'
})
}
// 新增讲师
export function addLecturer(data) {
return request({
url: '/benyi/lecturer',
method: 'post',
data: data
})
}
// 修改讲师
export function updateLecturer(data) {
return request({
url: '/benyi/lecturer',
method: 'put',
data: data
})
}
// 删除讲师
export function delLecturer(id) {
return request({
url: '/benyi/lecturer/' + id,
method: 'delete'
})
}
// 导出讲师
export function exportLecturer(query) {
return request({
url: '/benyi/lecturer/export',
method: 'get',
params: query
})
}

View File

@ -0,0 +1,53 @@
import request from '@/utils/request'
// 查询培训列表
export function listVideo(query) {
return request({
url: '/benyi/video/list',
method: 'get',
params: query
})
}
// 查询培训详细
export function getVideo(id) {
return request({
url: '/benyi/video/' + id,
method: 'get'
})
}
// 新增培训
export function addVideo(data) {
return request({
url: '/benyi/video',
method: 'post',
data: data
})
}
// 修改培训
export function updateVideo(data) {
return request({
url: '/benyi/video',
method: 'put',
data: data
})
}
// 删除培训
export function delVideo(id) {
return request({
url: '/benyi/video/' + id,
method: 'delete'
})
}
// 导出培训
export function exportVideo(query) {
return request({
url: '/benyi/video/export',
method: 'get',
params: query
})
}