dbd-meeting-html/src/api/admin/meeting/visitorPerson.js

53 lines
1.0 KiB
JavaScript
Raw Normal View History

import { axios } from '@/utils/request'
const api = {
visitorPerson: '/meeting/visitorPerson'
}
2024-03-21 17:42:15 +08:00
export function getVisitorPersonList(parameter) {
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: {}
})
}
2024-03-22 14:22:29 +08:00
export function getRecordByReservationId(id) {
return axios({
url: api.visitorPerson + '/getRecordByReservationId/' + id,
method: 'get',
params: {}
})
}
2024-03-21 17:42:15 +08:00
export function saveVisitorPerson(parameter) {
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) {
return axios({
url: api.visitorPerson + '/remove',
method: 'post',
params: parameter
})
}
export const visitorPersonExport = api.visitorPerson + '/export'