welfare-admin/src/api/person/personOrg.js

30 lines
624 B
JavaScript

import request from '@/utils/request'
const personOrgApi = {
listByOrgId: 'person/org/listByOrgId',
addPersonOrg: 'person/org/addPersonOrg',
removePersonOrg: 'person/org/removePersonOrg'
}
export function listPersonByOrgId(params) {
return request({
url: personOrgApi.listByOrgId,
method: 'get',
params: params
})
}
export function addPersonOrg(params) {
return request({
url: personOrgApi.addPersonOrg,
method: 'post',
data: params
})
}
export function removePersonOrg(params) {
return request({
url: personOrgApi.removePersonOrg,
method: 'post',
params: params
})
}