index.ts 584 B

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