商品详情
This commit is contained in:
@@ -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 });
|
||||
|
Reference in New Issue
Block a user