商品详情

This commit is contained in:
2024-03-08 18:06:33 +08:00
parent 2df1a93e6b
commit 107783062b
25 changed files with 675 additions and 63 deletions

14
src/api/goods/index.ts Normal file
View File

@@ -0,0 +1,14 @@
import { get } from '@/utils';
enum URL {
CategoryList = '/goods/category_list',
GoodsList = '/goods/category_list',
GoodsDetail = '/goods/info',
Order = '/user/logout',
}
export const getCategoryList = () => get({ url: URL.CategoryList });
export const getGoodsList = () => get({ url: URL.GoodsList });
export const getGoodsDetail = () => get({ url: URL.GoodsDetail });