This commit is contained in:
2024-01-31 14:56:48 +08:00
parent 14cbb87311
commit 494e3ee248
97 changed files with 11579 additions and 3858 deletions
+14
View File
@@ -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));
}
/**
* 批量修改客户
*/