classifyList.js 530 Bytes
import { http } from '@/main'

const defaultPath = 'scrm.api.shopmall.'

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

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

export default { getListApi, getClassifyInfoApi }