商品团购分享处理
This commit is contained in:
@@ -1,14 +1,16 @@
|
||||
import { get } from '@/utils';
|
||||
import { get, post } from '@/utils';
|
||||
import { CategoryBean, GoodsBean } from '@/api/goods/types';
|
||||
|
||||
enum URL {
|
||||
categoryList = '/ext/goods/category_list',
|
||||
goodsList = '/ext/goods/query',
|
||||
goodsDetail = '/ext/goods/info'
|
||||
goodsDetail = '/ext/goods/info',
|
||||
shareGoodsDetail = '/wechat/coupons/group/qrcode'
|
||||
}
|
||||
|
||||
export const getCategoryList = () => get<CategoryBean[]>({ url: URL.categoryList });
|
||||
|
||||
export const getGoodsList = (params: any) => get<GoodsBean[]>({ url: URL.goodsList, data: params });
|
||||
|
||||
export const getGoodsDetail = (goodsId: string) => get<GoodsBean>({ url: URL.goodsDetail + `?goodsId=${goodsId}` });
|
||||
|
||||
export const getShareGoodsDetail = (shareId: string) => post<GoodsBean>({ url: URL.shareGoodsDetail + `/${shareId}` });
|
||||
|
Reference in New Issue
Block a user