marketing.js 3.09 KB
/**
 * 新增参数sign 判断接口是否需要sign签名
 */
/**
 * 用法 : this.$apis.demo.GETLISTDEVICEFILEUNSTOCK(...)
 * @param {*} params
 * @returns
 */
import { http } from '@/main'
let session = 'mini-38b46ad7-4b83-4ee2-97d2-c18757812ca1-rop'
const getCoupon = params => {
    params.method = 'scrm.api.boutiquecoupon.coupon.page'
    return http({
        url: '/rop-scrm-boutiquecoupon/router',
        method: 'POST',
        data: params,
        sign: true
    })
}
const getMerchant = params => {
    params.method = 'scrm.api.coupon.list.merchant'
    return http({
        url: 'rop-scrm-coupon/router',
        method: 'POST',
        data: params,
        sign: true
    })
}
const getCard = params => {
    params.method = 'scrm.api.equity.card.class.list.with.page'
    return http({
        url: 'rop-scrm-equity/router',
        method: 'POST',
        data: params,
        sign: true
    })
}
const findAllByPage = params => {
    params.method = 'org.ore.api.dracIm.findAllByPage'
    params.sessionId = session
    return http({
        url: 'rop-scrm-entmicro/router',
        method: 'POST',
        data: params,
        sign: true
    })
}
const exportAdd = params => {
    params.method = 'org.ore.api.dracIm.exportAdd'
    params.sessionId = session
    return http({
        url: 'rop-scrm-entmicro/router',
        method: 'POST',
        data: params,
        sign: true
    })
}
const findById = params => {
    params.method = 'org.ore.api.dracIm.findById'
    params.sessionId = session
    return http({
        url: 'rop-scrm-entmicro/router',
        method: 'POST',
        data: params,
        sign: true
    })
}
const dracImMessage = params => {
    params.method = 'org.ore.api.dracImMessage.findAllByCondition'
    params.sessionId = session
    return http({
        url: 'rop-scrm-entmicro/router',
        method: 'POST',
        data: params,
        sign: true
    })
}
const listChannelCodeBill = params => {
    params.method = 'cn.com.glsx.entmicro.code.listChannelCodeBill'
    params.sessionId = session
    return http({
        url: '/rop-scrm-entmicro/router',
        method: 'POST',
        data: params,
        sign: true
    })
}
const addConfig = params => {
    params.method = 'org.ore.api.dracImConfig.addConfig'
    params.sessionId = session
    return http({
        url: '/rop-scrm-entmicro/router',
        method: 'POST',
        data: params,
        sign: true
    })
}
const findConfig = params => {
    params.method = 'org.ore.api.dracImConfig.findConfig'
    params.sessionId = session
    return http({
        url: '/rop-scrm-entmicro/router',
        method: 'POST',
        data: params,
        sign: true
    })
}
const updateConfig = params => {
    params.method = 'org.ore.api.dracImConfig.updateConfig'
    params.sessionId = session
    return http({
        url: '/rop-scrm-entmicro/router',
        method: 'POST',
        data: params,
        sign: true
    })
}
export default {
    getCoupon,
    getMerchant,
    getCard,
    listChannelCodeBill,
    findAllByPage,
    dracImMessage,
    exportAdd,
    findById,
    updateConfig,
    findConfig,
    addConfig
}