Files
jinshen-website/app/models/views/DocumentListView.ts
R2m1liA 4e7131b291
All checks were successful
deploy to server / build-and-deploy (push) Successful in 5m4s
feat: 添加download路由用于展示文档信息
- 添加/download/documentID路由用于文档下载
- server端添加文档元数据获取与下载API
- 将app中的types移至shared,与server共享
2025-10-27 17:16:51 +08:00

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[];
}