调整
This commit is contained in:
@@ -75,6 +75,20 @@ export async function updateCustomer(data: Customer) {
|
||||
return Promise.reject(new Error(res.data.message));
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量添加客户
|
||||
*/
|
||||
export async function addBatchCustomer(data: Customer[]) {
|
||||
const res = await request.post<ApiResult<unknown>>(
|
||||
'/tower/tower-customer/batch',
|
||||
data
|
||||
);
|
||||
if (res.data.code === 0) {
|
||||
return res.data.message;
|
||||
}
|
||||
return Promise.reject(new Error(res.data.message));
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量修改客户
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user