Fix: 修正产品规格参数显示问题

This commit is contained in:
2025-08-20 16:54:51 +08:00
parent 14152310b5
commit 8944054609
5 changed files with 123 additions and 93 deletions

View File

@ -1,19 +1,19 @@
export interface StrapiEntity {
id?: number;
documentId?: string;
createdAt?: string;
updatedAt?: string;
publishedAt?: string;
locale?: string;
id: number;
documentId: string;
createdAt: string;
updatedAt: string;
publishedAt: string;
locale: string;
}
export interface StrapiMedia {
id: number;
url: string;
ext?: string;
name?: string;
alternativeText?: string;
caption?: string;
ext: string;
name: string;
alternativeText: string;
caption: string;
}
export interface StrapiImageFormat {
@ -24,19 +24,19 @@ export interface StrapiImageFormat {
}
export interface StrapiImage extends StrapiMedia {
width?: number;
height?: number;
formats?: {
small?: StrapiImageFormat;
medium?: StrapiImageFormat;
thumbnail?: StrapiImageFormat;
width: number;
height: number;
formats: {
small: StrapiImageFormat;
medium: StrapiImageFormat;
thumbnail: StrapiImageFormat;
}
}
export interface StrapiResponse<T> {
data: T;
meta?: {
pagination?: {
meta: {
pagination: {
page: number;
pageSize: number;
pageCount: number;

View File

@ -4,13 +4,23 @@ export interface ProductionType extends StrapiEntity {
type: string;
}
export interface ProductionSpecItem {
label: string;
value: string;
}
export interface ProductionSpecGroup {
title: string;
items: ProductionSpecItem[];
}
export interface Production extends StrapiEntity {
title: string;
summary?: string;
production_type?: ProductionType;
production_image?: StrapiImage;
production_details?: string;
production_specs?: string | object;
documents?: StrapiMedia[];
show_in_production_list?: boolean;
summary: string;
production_type: ProductionType;
production_image: StrapiImage;
production_details: string;
production_specs: ProductionSpecGroup[];
documents: StrapiMedia[];
show_in_production_list: boolean;
}