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

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

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

export default {
	getDishList,
  getDishDetail
}
