All checks were successful
deploy to server / build-and-deploy (push) Successful in 2m56s
- ProductView中faqs命名错误,修正为ProductQuestionView - 移除useLocalizations中弃置的Strapi语言获取方法
39 lines
645 B
TypeScript
39 lines
645 B
TypeScript
interface ImageView {
|
|
id: number;
|
|
image: string;
|
|
caption: string;
|
|
}
|
|
|
|
/**
|
|
* 产品视图模型
|
|
* 用于产品详情页(/products/[slug])渲染的数据结构
|
|
*/
|
|
export interface ProductView {
|
|
/** 唯一标识符 **/
|
|
id: number;
|
|
|
|
/** 产品名称 **/
|
|
name: string;
|
|
|
|
/** 产品简介 **/
|
|
summary: string;
|
|
|
|
/** 产品类型 **/
|
|
product_type: string;
|
|
|
|
/** 产品图片 **/
|
|
images: ImageView[];
|
|
|
|
/** 产品详情 **/
|
|
description: string;
|
|
|
|
/** 产品规格 **/
|
|
specs: ProductSpecGroupView[];
|
|
|
|
/** 产品常见问题 **/
|
|
faqs: ProductQuestionView[];
|
|
|
|
/** 产品文档 **/
|
|
documents: ProductDocumentView[];
|
|
}
|