import request from '@/utils/request'
|
|
// 分页查询联系人列表
|
export function listContact(query) {
|
return request({
|
url: '/customerContact/listPage',
|
method: 'get',
|
params: query
|
})
|
}
|
|
// 根据ID查询联系人详情
|
export function getContactById(id) {
|
return request({
|
url: `/customerContact/getById/${id}`,
|
method: 'get'
|
})
|
}
|
|
// 新增联系人
|
export function addContact(data) {
|
return request({
|
url: '/customerContact/add',
|
method: 'post',
|
data: data
|
})
|
}
|
|
// 修改联系人
|
export function updateContact(data) {
|
return request({
|
url: '/customerContact/update',
|
method: 'put',
|
data: data
|
})
|
}
|
|
// 删除联系人
|
export function delContact(id) {
|
return request({
|
url: `/customerContact/delete/${id}`,
|
method: 'delete'
|
})
|
}
|
|
// 批量删除联系人
|
export function delContacts(ids) {
|
return request({
|
url: '/customerContact/delete',
|
method: 'delete',
|
data: ids
|
})
|
}
|