zoneList.js 992 Bytes
import { http } from '@/main'

const defaultPath = 'scrm.api.shopmall.'

const getZoneListApi = params => {
  params.method = `${defaultPath}zoneInfo.page`
  return http({
    url: 'rop-scrm-shopmall/router',
    method: 'GET',
    data: params,
    sign: true
  })
}

const deleteZoneApi = params => {
  params.method = `${defaultPath}zoneInfo.delete`
  return http({
    url: 'rop-scrm-shopmall/router',
    method: 'GET',
    data: params,
    sign: true,
    returnAll: true
  })
}

const getZoneInfoApi = params => {
  params.method = `${defaultPath}zoneInfo.getById`
  return http({
    url: 'rop-scrm-shopmall/router',
    method: 'GET',
    data: params,
    sign: true
  })
}

const insertZoneApi = params => {
  params.method = `${defaultPath}zoneInfo.insertOrUpdate`
  return http({
    url: 'rop-scrm-shopmall/router',
    method: 'GET',
    data: params,
    sign: true,
    returnAll: true
  })
}

export default { getZoneListApi, deleteZoneApi, getZoneInfoApi, insertZoneApi }