From a241b66efcc41e973290a6722fb7a4d79b833ea1 Mon Sep 17 00:00:00 2001
From: 云 <2163098428@qq.com>
Date: 星期二, 13 十月 2026 09:54:32 +0800
Subject: [PATCH] feat(bi): 为图表配置接口添加名称字段
---
src/api/crm/customer/index.ts | 16 ++++++++++++++--
1 files changed, 14 insertions(+), 2 deletions(-)
diff --git a/src/api/crm/customer/index.ts b/src/api/crm/customer/index.ts
index 038625f..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,
+ );
}
/** 鑾峰彇瀹㈡埛绮剧畝淇℃伅鍒楄〃 */
@@ -110,7 +120,9 @@
/** 棰嗗彇鍏捣瀹㈡埛 */
export function receiveCustomer(ids: number[]) {
- return requestClient.put('/crm/customer/receive', { ids: ids.join(',') });
+ return requestClient.put('/crm/customer/receive', null, {
+ params: { ids: ids.join(',') },
+ });
}
/** 鍒嗛厤鍏捣缁欏搴旇礋璐d汉 */
--
Gitblit v1.9.3