增加功能报价

This commit is contained in:
2026-09-16 00:22:17 +08:00
parent 71a14c46f9
commit 60b2658d4b
32 changed files with 3578 additions and 77 deletions
+56
View File
@@ -0,0 +1,56 @@
import request from "@/utils/request";
/*************************************************
* 租户端「产品购买」相关接口
*************************************************/
/** 可购买产品列表(含功能节点与价格档位) */
export function getProductList(params) {
return request({
url: "/backend/product/list",
method: "get",
params,
});
}
/** 按产品编码取详情 */
export function getProductDetailByCode(code) {
return request({
url: `/backend/product/detail/${code}`,
method: "get",
});
}
/** 下单(channel 为空表示线下/待平台开通) */
export function createProductOrder(data) {
return request({
url: "/backend/product/order/create",
method: "post",
data,
});
}
/** 查询订单状态(已支付会自动开通) */
export function getProductOrderStatus(orderNo) {
return request({
url: "/backend/product/order/status",
method: "get",
params: { order_no: orderNo },
});
}
/** 本租户购买记录 */
export function getMyProductOrders() {
return request({
url: "/backend/product/order/list",
method: "get",
});
}
/** 收银台可用支付渠道 */
export function getPaymentChannels() {
return request({
url: "/backend/payment/channels",
method: "get",
});
}