base.js 1.31 KB
import request from '../request'

/**
 * 获取集团
 */
export function account(query) {
  return request({
    url: '/accounts',
    method: 'get',
    params: query
  })
}

/**
 * 获取商场/门店
 */
export function mall(query) {
  return request({
    url: '/malls',
    method: 'get',
    params: query
  })
}

/**
 * 获取楼层
 */
export function floor(query) {
  return request({
    url: '/floors',
    method: 'get',
    params: query
  })
}

/**
 * 获取店铺/区域
 */
export function zone(query) {
  return request({
    url: '/zones',
    method: 'get',
    params: query
  })
}

/**
 * 获取监控点/出入口
 */
export function gate(query) {
  return request({
    url: '/gates',
    method: 'get',
    params: query
  })
}

/**
 * 获取城市列表
 */
export function city(query) {
  return request({
    url: '/citys',
    method: 'get',
    params: query
  })
}

/**
 * 获取国家
 */
export function countries(query) {
  return request({
    url: '/citys/countries',
    method: 'get',
    params: query
  })
}

/**
 * 获取省份列表
 */
export function province(query) {
  return request({
    url: '/provinces',
    method: 'get',
    params: query
  })
}

/**
 * 获取字典code
 */
export function dataDic(query) {
  return request({
    url: '/dataDics',
    method: 'get',
    params: query
  })
}