All checks were successful
deploy to server / build-and-deploy (push) Successful in 5m4s
- 添加/download/documentID路由用于文档下载 - server端添加文档元数据获取与下载API - 将app中的types移至shared,与server共享
46 lines
791 B
TypeScript
46 lines
791 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;
|
|
|
|
/** 文件UUID **/
|
|
fileId: string;
|
|
|
|
/** 文件名 **/
|
|
filename: string;
|
|
|
|
/** 文档标题 **/
|
|
title: string;
|
|
|
|
/** 文档大小 **/
|
|
size: number;
|
|
|
|
/** 文档链接 **/
|
|
url: string;
|
|
|
|
/** 相关产品 **/
|
|
products: DocumentListProduct[];
|
|
}
|