You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

62 lines
1.1 KiB

import request from '@/utils/request'
// 查询列表
export function listStaff(query) {
return request({
url: '/api/sys/staff/list/searchList',
method: 'get',
params: query
})
}
// select
export function select() {
return request({
url: '/api/sys/staff/list/teacherSelect',
method: 'get'
})
}
// 查询详细
export function getStaff(staffId) {
return request({
url: '/api/sys/staff/info/detailById/' + staffId,
method: 'get'
})
}
// 新增
export function addStaff(data) {
return request({
url: '/api/sys/staff/add/addSysStaff',
method: 'post',
data: data
})
}
// 修改
export function updateStaff(data) {
return request({
url: '/api/sys/staff/update/updateSysStaff',
method: 'put',
data: data
})
}
// 删除
export function delStaff(teacherId) {
return request({
url: '/api/sys/staff/delete/deleteById/' + teacherId,
method: 'delete'
})
}
// 导出
export function exportStaff(query) {
return request({
url: '/api/sys/staff/export',
method: 'get',
params: query
})
}