feat(api): add mini program catalog endpoints and product details

This commit is contained in:
yeuimu
2026-08-21 02:11:20 +08:00
parent fcbf8bb494
commit 7d09077f1d
18 changed files with 1347 additions and 179 deletions
@@ -145,7 +145,7 @@ interface BackendTag {
}
interface BackendProduct {
id: string;
goodId: string;
goodName: string;
goodPriority: number;
country: { id: string; countryName: string; countryIcon: string | null };
@@ -243,7 +243,7 @@ export function resolveDefaultProductFilters(
function mapProduct(p: BackendProduct, backendUrl: string): Product {
return {
id: p.id,
id: p.goodId,
name: p.goodName,
priority: p.goodPriority,
image: resolveBackendAssetUrl(p.image, backendUrl),