对接api

This commit is contained in:
2022-05-09 10:03:33 +08:00
parent e7a130533d
commit 4c46c6e22d
16 changed files with 243 additions and 184 deletions
+12
View File
@@ -0,0 +1,12 @@
import { useRequest } from "@/use/useHttp"
/**
* 获取轮播图列表
* @returns
*/
export const GetBannerList = () => {
return useRequest({
url: `/v1/mall/carouselBanner/list`,
method: "get",
})
}
+35
View File
@@ -0,0 +1,35 @@
import { useRequest } from "@/use/useHttp"
/**
* 获取面料分类列表
* @returns
*/
export const GetCategoryList = () => {
return useRequest({
url: `/v1/mall/category/list`,
method: "get",
})
}
/**
* 获取面料种类列表
* @returns
*/
export const GetProductKindListApi = () => {
return useRequest({
url: `/v1/mall/product/kind/list`,
method: "get",
})
}
/**
* 获取面料列表
* @returns
*/
export const GetProductListApi = () => {
return useRequest({
url: `/v1/mall/product/list`,
method: "get",
})
}