feat: customer import

This commit is contained in:
xingyu4j
2025-06-05 19:19:08 +08:00
parent fc6ebb8ed9
commit 5af9be3814
3 changed files with 144 additions and 2 deletions

View File

@@ -35,6 +35,11 @@ export namespace CrmCustomerApi {
createTime: Date; // 创建时间
updateTime: Date; // 更新时间
}
export interface CustomerImport {
ownerUserId: number;
file: File;
updateSupport: boolean;
}
}
/** 查询客户列表 */
@@ -78,8 +83,8 @@ export function importCustomerTemplate() {
}
/** 导入客户 */
export function importCustomer(file: File) {
return requestClient.upload('/crm/customer/import', { file });
export function importCustomer(data: CrmCustomerApi.CustomerImport) {
return requestClient.upload('/crm/customer/import', data);
}
/** 获取客户精简信息列表 */