lanan-system-vue/src/api/base/customer/index.js
2024-09-13 18:31:13 +08:00

78 lines
1.4 KiB
JavaScript

import request from '@/utils/request'
// 创建客户管理
export function createCustomerMain(data) {
return request({
url: '/base/custom/create',
method: 'post',
data: data
})
}
export function bindCustomerCar(data) {
return request({
url: '/base/custom/bindCustomerCar',
method: 'post',
data: data
})
}
export function setLabelList(data) {
return request({
url: '/base/custom/setLabel',
method: 'post',
data: data
})
}
// 更新客户管理
export function updateCustomerMain(data) {
return request({
url: '/base/custom/update',
method: 'put',
data: data
})
}
// 删除客户管理
export function deleteCustomerMain(id) {
return request({
url: '/base/custom/delete?id=' + id,
method: 'delete'
})
}
// 获得客户管理
export function getCustomerMain(id) {
return request({
url: '/base/custom/get?id=' + id,
method: 'get'
})
}
export function getCustomerMainPage(params) {
return request({
url: '/base/custom/page',
method: 'get',
params
})
}
// 导出客户管理 Excel
export function exportCustomerMainExcel(params) {
return request({
url: '/base/custom/export-excel',
method: 'get',
params,
responseType: 'blob'
})
}
// 用户列表
export function getCustomerList(){
return request({
url: "/base/custom/list",
method: "get"
})
}