| | |
| | | file: File; |
| | | updateSupport: boolean; |
| | | } |
| | | |
| | | /** 客户导入结果 */ |
| | | export interface CustomerImportRespVO { |
| | | createCustomerNames?: string[]; // 新增成功的客户名 |
| | | updateCustomerNames?: string[]; // 更新成功的客户名 |
| | | failureCustomerNames?: Record<string, string>; // 导入失败的客户名及原因 |
| | | } |
| | | } |
| | | |
| | | /** 查询客户列表 */ |
| | |
| | | |
| | | /** 导入客户 */ |
| | | export function importCustomer(data: CrmCustomerApi.CustomerImportReqVO) { |
| | | return requestClient.upload('/crm/customer/import', data); |
| | | return requestClient.upload<CrmCustomerApi.CustomerImportRespVO>( |
| | | '/crm/customer/import', |
| | | data, |
| | | ); |
| | | } |
| | | |
| | | /** 获取客户精简信息列表 */ |