43 lines
751 B
TypeScript
43 lines
751 B
TypeScript
/**
|
|
* 文档关联产品类型模型
|
|
* 用于在文档库中提供产品筛选功能
|
|
*/
|
|
export interface DocumentListProductType {
|
|
id: number;
|
|
name: string;
|
|
}
|
|
|
|
/**
|
|
* 文档关联产品模型
|
|
* 用于在文档库中提供产品筛选功能
|
|
*/
|
|
export interface DocumentListProduct {
|
|
id: number;
|
|
name: string;
|
|
type: DocumentListProductType;
|
|
}
|
|
|
|
/**
|
|
* 文档列表模型
|
|
* 用于文档库(/support/documents)页面渲染的数据结构
|
|
*/
|
|
export interface DocumentListView {
|
|
/** 唯一标识符 **/
|
|
id: number;
|
|
|
|
/** 文件名 **/
|
|
filename: string;
|
|
|
|
/** 文档标题 **/
|
|
title: string;
|
|
|
|
/** 文档大小 **/
|
|
size: number;
|
|
|
|
/** 文档链接 **/
|
|
url: string;
|
|
|
|
/** 相关产品 **/
|
|
products: DocumentListProduct[];
|
|
}
|