whiteList.js 1.49 KB
import {http} from "@/main";

const url = 'rop-scrm-entmicro/router'
// 订阅开通商户分页查询
const subscribeMerchant = params => {
    // entmicro.api.system.subscribe.merchant.page
    params.method = `entmicro.api.system.withdrawal.of.points.merchant.page`
    return http({
        url,
        method: 'POST',
        data: params,
        returnAll: true
    })
}


const whiteListPage = params =>{
    params.method = `stoassistant.api.withdrawal.of.points.page`
    return http({
        url:'rop-scrm-stoassistant/router',
        method: 'POST',
        data: params
    })
}


// 积分提现门店白名单配置校验
const whiteListCheck = params =>{
    params.method = `stoassistant.api.withdrawal.of.points.merchant.check`
    return http({
        url:'rop-scrm-stoassistant/router',
        method: 'POST',
        data: params,
        returnAll: true
    })
}

const whiteListSave = params =>{
    params.method = `stoassistant.api.withdrawal.of.points.merchant.list.save`
    return http({
        url:'rop-scrm-stoassistant/router',
        method: 'POST',
        data: params,
        returnAll: true
    })
}

const whiteListDelete = params =>{
    params.method = `stoassistant.api.withdrawal.of.points.merchant.list.delete`
    return http({
        url:'rop-scrm-stoassistant/router',
        method: 'POST',
        data: params,
        returnAll: true
    })
}


export default {
    subscribeMerchant,
    whiteListPage,
    whiteListCheck,
    whiteListSave,
    whiteListDelete
}