import http from '@/http/api.js'
import {
  bizConst
} from './biz/biz.js'
import {
  clientId,
  tenantId
} from '@/common/setting'

const getRestaurantList = (current, size, vo) => {
  return http.request({
    url: bizConst.basicPrefix + '/famous_store/list',
    method: 'GET',
    header: {
      'Tenant-Id': tenantId
    },
    params: {
      current,
      size,
      ...vo
    },
  })
}
const getRestaurantDetail = (id) => {
  return http.request({
    url: bizConst.basicPrefix + '/famous_store/detail',
    method: 'GET',
    header: {
      'Tenant-Id': tenantId
    },
    params: {
      id
    },
  })
}

export default {
  getRestaurantList,
  getRestaurantDetail
}