商品详情

This commit is contained in:
2024-03-10 15:40:26 +08:00
parent 107783062b
commit 00013cb46c
34 changed files with 2244 additions and 65 deletions

View File

@@ -1,14 +1,14 @@
import { get } from '@/utils';
import { get, post } from '@/utils';
enum URL {
CategoryList = '/goods/category_list',
GoodsList = '/goods/category_list',
GoodsDetail = '/goods/info',
Order = '/user/logout',
categoryList = '/ext//goods/category_list',
goodsList = '/ext/goods/query',
goodsDetail = '/ext/goods/info',
order = '/user/logout',
}
export const getCategoryList = () => get({ url: URL.CategoryList });
export const getCategoryList = (companyId: string) => get({ url: URL.categoryList + `?companyId=${companyId}` });
export const getGoodsList = () => get({ url: URL.GoodsList });
export const getGoodsList = (params: any) => post({ url: URL.goodsList, data: params });
export const getGoodsDetail = () => get({ url: URL.GoodsDetail });
export const getGoodsDetail = () => get({ url: URL.goodsDetail });