103 lines
1.9 KiB
JavaScript
103 lines
1.9 KiB
JavaScript
/*
|
|
* @Author: Do not edit
|
|
* @Date: 2023-10-21 11:50:46
|
|
* @LastEditTime: 2023-11-02 19:49:52
|
|
* @LastEditors: DY
|
|
* @Description:
|
|
*/
|
|
import request from '@/utils/request'
|
|
|
|
// 创建员工
|
|
export function createCoreWorker(data) {
|
|
return request({
|
|
url: '/base/core-worker/create',
|
|
method: 'post',
|
|
data: data
|
|
})
|
|
}
|
|
|
|
// 更新员工
|
|
export function updateCoreWorker(data) {
|
|
return request({
|
|
url: '/base/core-worker/update',
|
|
method: 'put',
|
|
data: data
|
|
})
|
|
}
|
|
|
|
// 删除员工
|
|
export function deleteCoreWorker(id) {
|
|
return request({
|
|
url: '/base/core-worker/delete?id=' + id,
|
|
method: 'delete'
|
|
})
|
|
}
|
|
|
|
// 获得员工
|
|
export function getCoreWorker(id) {
|
|
return request({
|
|
url: '/base/core-worker/get?id=' + id,
|
|
method: 'get'
|
|
})
|
|
}
|
|
|
|
// 获得员工code
|
|
export function getCode() {
|
|
return request({
|
|
url: '/base/core-worker/getCode',
|
|
method: 'get'
|
|
})
|
|
}
|
|
|
|
// 获得员工分页
|
|
export function getCoreWorkerPage(query) {
|
|
return request({
|
|
url: '/base/core-worker/page',
|
|
method: 'get',
|
|
params: query
|
|
})
|
|
}
|
|
|
|
// 获得所有列表
|
|
export function getCoreWorkerList(query) {
|
|
return request({
|
|
url: '/base/core-worker/listAll',
|
|
method: 'get',
|
|
params: query
|
|
})
|
|
}
|
|
|
|
// 创建员工--专业
|
|
export function createWoBindMa(data) {
|
|
return request({
|
|
url: '/base/core-worker-bind-major/create',
|
|
method: 'post',
|
|
data: data
|
|
})
|
|
}
|
|
|
|
// 更新员工--专业
|
|
export function updateWoBindMa(data) {
|
|
return request({
|
|
url: '/base/core-worker-bind-major/update',
|
|
method: 'put',
|
|
data: data
|
|
})
|
|
}
|
|
|
|
// 删除员工--专业
|
|
export function deleteWoBindMa(id) {
|
|
return request({
|
|
url: '/base/core-worker-bind-major/delete?id=' + id,
|
|
method: 'delete'
|
|
})
|
|
}
|
|
|
|
// 获得员工--专业分页
|
|
export function getWoBindMaPage(query) {
|
|
return request({
|
|
url: '/base/core-worker-bind-major/page',
|
|
method: 'get',
|
|
params: query
|
|
})
|
|
} |