Commit b800848e authored by xinzhedeai's avatar xinzhedeai

add:员工 - 岗位 部门接口对接。删除编辑功能

parent bd2c1637
......@@ -20,7 +20,7 @@ export function unbindCard(data) {
// 新增人员信息
export function addInfo(data) {
return request({
url: '/person/info/addRemotePersonInfo',
url: '/person/info/addPerson',
method: 'post',
data: data
})
......@@ -29,17 +29,23 @@ export function addInfo(data) {
// 修改人员信息
export function updateInfo(data) {
return request({
url: '/person/info/updateRemotePersonInfo',
url: '/person/info/updatePerson',
method: 'put',
data: data
})
}
export function getInfo(id) {
return request({
url: '/person/info/getPersonById/' + id,
method: 'get'
})
}
// 删除人员信息
export function delInfo(data) {
export function delInfo(id) {
return request({
url: '/person/info/deleteRemotePersonInfo',
url: '/person/info/deletePerson/' + id,
method: 'delete',
data: data
})
}
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment