/** * 产品类型视图模型 * 用于产品列表页的section渲染与排序 */ export interface ProductTypeView { /** 唯一标识符 **/ id: number; /** 类型名 **/ name: string; /** 排序字段 **/ sort: number; } /** * 产品列表视图模型 * 用于产品列表(/products)渲染的数据结构 */ export interface ProductListView { /** 唯一标识符 **/ id: number; /** 产品名称 **/ name: string; /** 产品简介 **/ summary: string; /** 产品类型 **/ product_type: ProductTypeView; /** 产品封面(图片的id) **/ cover: string; }