index.ts 551 B

12345678910111213141516171819
  1. import request from '@/config/axios'
  2. export interface CustomerPoolConfigVO {
  3. enabled?: boolean
  4. contactExpireDays?: number
  5. dealExpireDays?: number
  6. notifyEnabled?: boolean
  7. notifyDays?: number
  8. }
  9. // 获取客户公海规则设置
  10. export const getCustomerPoolConfig = async () => {
  11. return await request.get({ url: `/crm/customer-pool-config/get` })
  12. }
  13. // 更新客户公海规则设置
  14. export const saveCustomerPoolConfig = async (data: CustomerPoolConfigVO) => {
  15. return await request.put({ url: `/crm/customer-pool-config/save`, data })
  16. }