gaoluyang
2026-06-24 c0cb161bb52ce0fbdce5c66ec391d107c75e2452
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
import { requestClient } from '#/api/request';
 
export namespace CrmCustomerPoolConfigApi {
  /** 客户公海规则设置 */
  export interface CustomerPoolConfig {
    enabled?: boolean;
    contactExpireDays?: number;
    dealExpireDays?: number;
    notifyEnabled?: boolean;
    notifyDays?: number;
  }
}
 
/** 获取客户公海规则设置 */
export function getCustomerPoolConfig() {
  return requestClient.get<CrmCustomerPoolConfigApi.CustomerPoolConfig>(
    '/crm/customer-pool-config/get',
  );
}
 
/** 更新客户公海规则设置 */
export function saveCustomerPoolConfig(
  data: CrmCustomerPoolConfigApi.CustomerPoolConfig,
) {
  return requestClient.put('/crm/customer-pool-config/save', data);
}