wechatGroup.js 1.8 KB
import { http, http2 } from '@/main'

const path = 'entmicro.api.mass.'
const URL = 'rop-scrm-entmicro/router'

const querylabeltree = params => {
  params.method = 'scrm.api.datahub.labelgroup.queryLabelTree'
  return http({
    url: '/rop-scrm-datahub/router',
    method: 'POST',
    data: params,
    sign: true
  })
}

const queryCrowdtree = params => {
  params.method = 'scrm.api.datahub.user.queryCrowdTree'
  return http({
    url: 'rop-scrm-datahub/router',
    method: 'POST',
    data: params,
    sign: true
  })
}

const batchmessagingRecord = params => {
  params.method = 'entmicro.api.wechatcloudcontrol.batchmessaging.record'
  return http({
    url: URL,
    method: 'POST',
    data: params,
    sign: true
  })
}
// 企微群发查看预计群发人数
const atchmessagingCustomercount = params => {
  params.method = 'entmicro.api.wechatcloudcontrol.batchmessaging.customercount'
  return http({
    url: URL,
    method: 'POST',
    data: params,
    sign: true
  })
}
// 企微群发任务创建
const atchmessagingCreate = params => {
  params.method = 'entmicro.api.wechatcloudcontrol.batchmessaging.create'
  return http({
    url: URL,
    method: 'POST',
    data: params,
    sign: true
  })
}
const getStoreList = params => {
  params.method = 'entmicro.api.wechatcloudcontrol.batchmessaging.create.merchant'
  return http({
    url: URL,
    method: 'POST',
    data: params,
    sign: true
  })
}
const recordSend = params => {
  params.method = 'entmicro.api.wechatcloudcontrol.batchmessaging.record.send'
  return http({
    url: URL,
    method: 'POST',
    data: params,
    sign: true
  })
}

// 企微高级群发查看预计群发人数


export default {
  querylabeltree,
  queryCrowdtree,
  batchmessagingRecord,
  atchmessagingCustomercount,
  atchmessagingCreate,
  getStoreList,
  recordSend
}