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

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

const getSnacksDetail = (id) => {
  return http.request({
    url: bizConst.basicPrefix + '/famous_snacks/detail',
    method: 'GET',
    header: {
      'Tenant-Id': tenantId
    },
    params: {
      id
    },
  })
}
export default {
  getSnacksList,
  getSnacksDetail
}