giftBag.js 1.22 KB
import { http } from '@/main'

const getFollowerStaffListApi = params => {
  params.method = 'entmicro.api.staff.listFollowerStaffByPage'
  return http({
    url: 'rop-scrm-entmicro/router',
    method: 'GET',
    data: params,
    sign: true
  })
}

const getListApi = params => {
  params.method = 'scrm.api.coupon.saas.directional.gift.list'
  return http({
    url: 'rop-scrm-coupon/router',
    method: 'GET',
    data: params,
    sign: true
  })
}

const giftExportApi = params => {
  params.method = 'scrm.api.coupon.saas.directional.gift.list.export'
  return http({
    url: 'rop-scrm-coupon/router',
    method: 'GET',
    data: params,
    sign: true
  })
}

//删除
const deleteGiftApi = params => {
  params.method = 'scrm.api.coupon.directional.gift.delete'
  return http({
    url: 'rop-scrm-coupon/router',
    method: 'POST',
    data: params,
    sign: true,
    returnAll: true
  })
}

// 获取详情
const getGiftInfoApi = params => {
  params.method = 'scrm.api.coupon.directional.gift.detail'
  return http({
    url: 'rop-scrm-coupon/router',
    method: 'POST',
    data: params,
    sign: true,
    returnAll: true
  })
}

export default { getFollowerStaffListApi, getListApi, giftExportApi, deleteGiftApi, getGiftInfoApi }