2024-03-21 11:02:05 +08:00
|
|
|
import { axios } from '@/utils/request'
|
|
|
|
|
|
|
|
const api = {
|
|
|
|
visitorPerson: '/meeting/visitorPerson'
|
|
|
|
}
|
|
|
|
|
2024-03-21 17:42:15 +08:00
|
|
|
export function getVisitorPersonList(parameter) {
|
2024-03-21 11:02:05 +08:00
|
|
|
return axios({
|
|
|
|
url: api.visitorPerson + '/list',
|
|
|
|
method: 'get',
|
|
|
|
params: parameter
|
|
|
|
})
|
|
|
|
}
|
|
|
|
|
2024-03-21 17:42:15 +08:00
|
|
|
|
|
|
|
export function getVisitorPersonId(id) {
|
|
|
|
return axios({
|
|
|
|
url: api.visitorPerson + '/get/' + id,
|
|
|
|
method: 'get',
|
|
|
|
params: {}
|
|
|
|
})
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
export function saveVisitorPerson(parameter) {
|
2024-03-21 11:02:05 +08:00
|
|
|
return axios({
|
|
|
|
url: api.visitorPerson + (parameter.id > 0 ? '/update' : '/save'),
|
|
|
|
method: 'post',
|
|
|
|
data: parameter,
|
|
|
|
headers: {
|
|
|
|
'Content-Type': 'application/json;charset=UTF-8'
|
|
|
|
}
|
|
|
|
})
|
|
|
|
}
|
|
|
|
|
2024-03-21 17:42:15 +08:00
|
|
|
export function delVisitorPerson(parameter) {
|
2024-03-21 11:02:05 +08:00
|
|
|
return axios({
|
|
|
|
url: api.visitorPerson + '/remove',
|
|
|
|
method: 'post',
|
|
|
|
params: parameter
|
|
|
|
})
|
|
|
|
}
|
|
|
|
|
|
|
|
export const visitorPersonExport = api.visitorPerson + '/export'
|