From b3383d96db5b39e03edfece495572a3120edcd61 Mon Sep 17 00:00:00 2001
From: liu <2021943741@qq.com>
Date: 星期一, 12 十月 2026 13:14:10 +0800
Subject: [PATCH] Merge remote-tracking branch 'origin/dev_pro2.0' into dev_pro2.0
---
src/api/crm/customer/index.ts | 12 +++++++++++-
1 files changed, 11 insertions(+), 1 deletions(-)
diff --git a/src/api/crm/customer/index.ts b/src/api/crm/customer/index.ts
index 4c17fde..a8a03ae 100644
--- a/src/api/crm/customer/index.ts
+++ b/src/api/crm/customer/index.ts
@@ -44,6 +44,13 @@
file: File;
updateSupport: boolean;
}
+
+ /** 瀹㈡埛瀵煎叆缁撴灉 */
+ export interface CustomerImportRespVO {
+ createCustomerNames?: string[]; // 鏂板鎴愬姛鐨勫鎴峰悕
+ updateCustomerNames?: string[]; // 鏇存柊鎴愬姛鐨勫鎴峰悕
+ failureCustomerNames?: Record<string, string>; // 瀵煎叆澶辫触鐨勫鎴峰悕鍙婂師鍥�
+ }
}
/** 鏌ヨ瀹㈡埛鍒楄〃 */
@@ -88,7 +95,10 @@
/** 瀵煎叆瀹㈡埛 */
export function importCustomer(data: CrmCustomerApi.CustomerImportReqVO) {
- return requestClient.upload('/crm/customer/import', data);
+ return requestClient.upload<CrmCustomerApi.CustomerImportRespVO>(
+ '/crm/customer/import',
+ data,
+ );
}
/** 鑾峰彇瀹㈡埛绮剧畝淇℃伅鍒楄〃 */
--
Gitblit v1.9.3