feat: 用接口

This commit is contained in:
chashaobao
2026-01-27 21:09:40 +08:00
parent b142751b69
commit 17be93115d
4 changed files with 36 additions and 47 deletions

View File

@ -327,3 +327,9 @@ export async function getProductList(productType: API.ProductType) {
method: 'GET',
});
}
export async function getProductSpec(productSpecId: API.ProductType) {
return request<API.ProductSpecListItem>(buildUrl(AdminAPI.GET_PRODUCT_SPEC, {productSpecId}), {
method: 'GET',
})
}

View File

@ -411,6 +411,7 @@ declare namespace API {
productSpecId: string;
productType: ProductType;
productName: string;
count: number;
title: string;
priceText: string;
payPrice: number;