zhangwencui
2 天以前 a2002ba0e8aa2a0e4eee61b5205748d8f6e454fc
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);
}