feat: 完成bbs商城

This commit is contained in:
橙子
2024-11-03 18:01:47 +08:00
parent 1468a7b878
commit 22a8703978
5 changed files with 160 additions and 28 deletions

View File

@@ -0,0 +1,33 @@
import request from "@/config/axios/service";
/**
* 获取商城列表
*/
export function getShopList() {
return request({
url: `/bbs-shop`,
method: "get",
});
}
/**
* 获取商城的用户信息
*/
export function getAccountInfo() {
return request({
url: `/bbs-shop/account`,
method: "get",
});
}
/**
* 购买商品
*/
export function postBuy(data) {
return request({
url: `/bbs-shop/buy`,
method: "post",
data
});
}