record.js 2.25 KB
import { http } from '@/main'

// const defaultPath = 'scrm.api.live.'

const getRecordListApi = params => {
  //   params.method = `${defaultPath}goods.list`
  params.method = `scrm.api.coupon.verification.code.verification.list`

  return http({
    url: 'rop-scrm-coupon/router',
    method: 'POST',
    data: params,
    sign: true
  })
}
const getVerificationCode = params => {
  params.method = `scrm.api.coupon.verification.code.verification`

  return http({
    url: 'rop-scrm-coupon/router',
    method: 'POST',
    data: params,
    sign: true
  })
}

// 核销详情-导出
const verificationExportApi = params => {
  params.method = 'scrm.api.coupon.verification.member.export.list'
  return http({
    url: 'rop-scrm-coupon/router',
    method: 'GET',
    data: params,
    sign: true
  })
}
// const auditGoodApi = params => {
//   params.method = `${defaultPath}audit.goods`
//   return http({
//     url: 'rop-scrm-live/router',
//     method: 'POST',
//     data: params,
//     sign: true,
//     returnAll: true
//   })
// }

// const getGoodInfoApi = params => {
//   params.method = `${defaultPath}get.good.by.id`
//   return http({
//     url: 'rop-scrm-live/router',
//     method: 'POST',
//     data: params,
//     sign: true
//   })
// }

// const getGoodGroupInfoApi = params => {
//   params.method = `${defaultPath}get.good.group.by.id`
//   return http({
//     url: 'rop-scrm-live/router',
//     method: 'POST',
//     data: params,
//     sign: true
//   })
// }

// const insertGoodApi = params => {
//   params.method = `${defaultPath}insert.good`
//   return http({
//     url: 'rop-scrm-live/router',
//     method: 'POST',
//     data: params,
//     sign: true,
//     returnAll: true
//   })
// }

// const insertGoodGroupApi = params => {
//   params.method = `${defaultPath}insert.good.group`
//   return http({
//     url: 'rop-scrm-live/router',
//     method: 'POST',
//     data: params,
//     sign: true,
//     returnAll: true
//   })
// }

// const deleteGoodApi = params => {
//   params.method = `${defaultPath}delete.goods`
//   return http({
//     url: 'rop-scrm-live/router',
//     method: 'POST',
//     data: params,
//     sign: true,
//     returnAll: true
//   })
// }

export { getRecordListApi, getVerificationCode, verificationExportApi }