2023-11-09 00:05:10 +08:00
|
|
|
import request from '@/config/axios'
|
2023-11-26 12:02:08 +00:00
|
|
|
import { ConfigVO } from '@/api/infra/config'
|
2023-11-09 00:05:10 +08:00
|
|
|
|
|
|
|
export interface CustomerPoolConfigVO {
|
|
|
|
enabled?: boolean
|
|
|
|
contactExpireDays?: number
|
|
|
|
dealExpireDays?: number
|
|
|
|
notifyEnabled?: boolean
|
|
|
|
notifyDays: number
|
|
|
|
}
|
|
|
|
|
|
|
|
// 获取客户公海规则设置
|
|
|
|
export const getCustomerPoolConfig = async () => {
|
|
|
|
return await request.get({ url: `/crm/customer-pool-config/get` })
|
|
|
|
}
|
|
|
|
|
|
|
|
// 更新客户公海规则设置
|
2023-11-26 12:02:08 +00:00
|
|
|
export const saveCustomerPoolConfig = async (data: ConfigVO) => {
|
|
|
|
return await request.put({ url: `/crm/customer-pool-config/save`, data })
|
2023-11-09 00:05:10 +08:00
|
|
|
}
|