import OrderappClientApi from './index' export default class CategoryApi { api: OrderappClientApi constructor (api: OrderappClientApi) { this.api = api } async getCategories (merchantId: string, datetime: Date): Promise { const endpoint = '/c/category' const params = { merchantID: merchantId, time: datetime, } const response = await this.api.axiosGo.get(endpoint, { params }) return response.data } }