/**
 * 统计表格的接口
 */
import http from './http'
const ipconfig = process.env.VUE_APP_TAPI

// 获取所有的省份
const getAllProvince = (params) => { return http.get(ipconfig + '/common/area/getAllProvince', { params }) }

// 根据id获取市
const getCityByPid = (params) => { return http.get(ipconfig + '/common/area/getCityByPid', { params }) }

// 根据id获取商圈
const getAllData = (params) => { return http.post(ipconfig + '/common/business-areas/getAllData', params) }

// 获取行业一级分类
const getAllFirstData = (params) => { return http.get(ipconfig + '/common/shop-categories/getAllFirstData', { params }) }

// 获取商户列表接口
const getShops = (params) => { return http.post(ipconfig + '/mer-backend/shops/getPageShop', params) }



export default {
    getAllProvince,
    getCityByPid,
    getAllData,
    getAllFirstData,
    getShops
}