feat: 用接口
This commit is contained in:
@ -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',
|
||||
})
|
||||
}
|
||||
|
||||
1
src/services/typings.d.ts
vendored
1
src/services/typings.d.ts
vendored
@ -411,6 +411,7 @@ declare namespace API {
|
||||
productSpecId: string;
|
||||
productType: ProductType;
|
||||
productName: string;
|
||||
count: number;
|
||||
title: string;
|
||||
priceText: string;
|
||||
payPrice: number;
|
||||
|
||||
Reference in New Issue
Block a user