对接完添加购物车

This commit is contained in:
2022-05-09 18:52:08 +08:00
parent b5e967779c
commit f3c818f549
15 changed files with 212 additions and 79 deletions
+11
View File
@@ -9,4 +9,15 @@ export const GetShoppingCartApi = () => {
url: `/v1/mall/shoppingCart/productColor`,
method: "get",
})
}
/**
* 批量添加面料颜色到物车列表
* @returns
*/
export const AddShoppingCartApi = () => {
return useRequest({
url: `/v1/mall/shoppingCart/productColor/list`,
method: "post",
})
}
+1 -1
View File
@@ -13,7 +13,7 @@ import { useRequest } from "@/use/useHttp"
/**
* 获取后台返回的用户信息
*/
export const GetSelfUserInfoApi = () => {
export const GetAdminUserInfoApi = () => {
return useRequest({
url: `/v1/mall/user/info`,
method: "get",