lanan-system-vue/src/views/drivingSchool/schoolCoach/api/index.js
2025-01-17 13:18:53 +08:00

46 lines
940 B
JavaScript

import request from '@/utils/request'
// 创建驾校教练
export function saveCoach(data) {
return request({
url: '/base/dl-drive-school-coach/save',
method: 'post',
data: data
})
}
// 删除驾校教练
export function deleteDlDriveSchoolCoach(id) {
return request({
url: '/base/dl-drive-school-coach/delete?id=' + id,
method: 'delete'
})
}
// 获得驾校教练
export function getDlDriveSchoolCoach(id) {
return request({
url: '/base/dl-drive-school-coach/get?id=' + id,
method: 'get'
})
}
// 获得驾校教练分页
export function getDlDriveSchoolCoachPage(params) {
return request({
url: '/base/dl-drive-school-coach/page',
method: 'get',
params
})
}
// 导出驾校教练 Excel
export function exportDlDriveSchoolCoachExcel(params) {
return request({
url: '/base/dl-drive-school-coach/export-excel',
method: 'get',
params,
responseType: 'blob'
})
}