import OrderappClientApi from './index' export default class MenuApi { api: OrderappClientApi constructor (api: OrderappClientApi) { this.api = api } async getCategoryMenus (merchantId: string, categoryId: string): Promise>> { const endpoint = '/c/menu' const response = await this.api.axiosGo.get(endpoint, { params: { merchantID: merchantId, categoryID: categoryId, takeaway: false, }, }) return response.data } async getCategorySets (merchantId: string, categoryId: string): Promise>> { const endpoint = '/c/set' const response = await this.api.axiosGo.get(endpoint, { params: { merchantID: merchantId, categoryID: categoryId, takeaway: false, }, }) return response.data } async getSetMenus (merchantId: string, setId: string): Promise>> { const endpoint = '/c/setmenu' const response = await this.api.axiosGo.get(endpoint, { params: { merchantID: merchantId, setID: setId, takeaway: false, }, }) return response.data } }