import { get, post } from '@/utils';

enum URL {
  categoryList = '/ext//goods/category_list',
  goodsList = '/ext/goods/query',
  goodsDetail = '/ext/goods/info',
  order = '/user/logout',
}

export const getCategoryList = (companyId: string) => get({ url: URL.categoryList + `?companyId=${companyId}` });

export const getGoodsList = (params: any) => post({ url: URL.goodsList, data: params });

export const getGoodsDetail = () => get({ url: URL.goodsDetail });
