xyadmin-web/src/api/gwCustomer.js
2024-01-19 16:38:40 +08:00

51 lines
879 B
JavaScript

import request from '@/utils/request'
export function add(data) {
return request({
url: 'api/gwCustomer',
method: 'post',
data
})
}
export function del(id) {
return request({
url: 'api/gwCustomer/' + id,
method: 'delete'
})
}
export function edit(data) {
return request({
url: 'api/gwCustomer',
method: 'put',
data
})
}
export function downloadGwCustomer(params) {
return request({
url: 'api/gwCustomer/download',
method: 'get',
params,
responseType: 'blob'
})
}
// 项目经理:下拉选 -同等于- 项目详情-新增人员下拉框
export function listALlCustomers(params) {
return request({
url: 'api/gwCustomer',
method: 'get',
params
})
}
// 上传
export function gwUploadImage(data) {
return request({
url: 'api/localStorage/gw?name=file',
method: 'post',
data
})
}