marketingApi.js 1.73 KB
import api from '~/utils/request/request'
module.exports = {
  /**
   * 获取指定活动客户统计信息
   */
  getSupermarketData(data) {
    return api.post({
      method: 'marketing.api.supermarket.customers.statistics',
      ...data,
      // activityId: 10509 //开发调试用
    })
  },
  /** 
   *获取指定活动客户列表
   */
  getSupermarketCustomerList(data) {
    return api.post({
      method: 'marketing.api.supermarket.customers.page',
      pageSize: 999999,
      pageNum: 1,
      ...data
    })
  },
  /**
   * 获取活动客户标签列表
   */
  getSupermarketTagList(data) {
    return api.post({
      method: 'marketing.api.supermarket.customers.listCustomerTags',
      ...data
    })
  },

  /** 更新跟进结果*/
  updateFollow(data) {
    return api.post({
      method: 'marketing.api.supermarket.customers.updateFollow',
      ...data
    })
  },

  /**
   *发起AI外呼
   */
  invokeAICall(data) {
    return api.post({
      method: 'marketing.api.supermarket.bulge.invokeAICall',
      ...data
    }, true)
  },
  /**
  发送膨胀金短信 */
  sendSms(data) {
    return api.post({
      method: 'marketing.api.supermarket.bulge.sendSms',
      ...data
    }, true)
  },
  /**
   * 通话详情
   */
  getPhoneCallDetail(data) {
    return api.post({
      method: 'marketing.api.supermarket.customer.call.detail',
      ...data
    }, true)
  },
  /** AI外呼任务添加客户 */
  addAICallCustomer(data) {
    return api.post({
      method: 'marketing.api.supermarket.bulge.addAICallCustomer',
      ...data
    }, true)
  },
  /** 批量发起AI外呼 */
  batchInvokeAICall(data) {
    return api.post({
      method: 'marketing.api.supermarket.bulge.executeAICall',
      ...data
    }, true)
  }
}