wechatGroup.js 2.22 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 batchmessagingCustomercount = 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,
        returnAll: 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
    })
}
const sendStop = params => {
    params.method = 'entmicro.api.wechatcloudcontrol.batchmessaging.send.stop'
    return http({
        url: URL,
        method: 'POST',
        data: params,
        sign: true,
        returnAll: true
    })
}
// 获取可选跟进员工



export default {
    querylabeltree,
    queryCrowdtree,
    batchmessagingRecord,
    batchmessagingCustomercount,
    atchmessagingCreate,
    getStoreList,
    recordSend,
    sendStop,
}