feat: directus视图与转换函数

- views: 用于前端渲染的视图模型
- mapper: 用于视图模型转换的转换函数
- utils: 相关工具函数
This commit is contained in:
2025-10-15 16:48:38 +08:00
parent de7c03a7a9
commit 98f978484c
9 changed files with 332 additions and 0 deletions

View File

@ -0,0 +1,20 @@
/**
* 文档视图模型
* 用于文档页(/support/documents)渲染的数据结构
*/
export interface ProductDocumentView {
/** 唯一标识符 **/
id: number;
/** 文件名 **/
filename: string;
/** 文档标题 **/
title: string;
/** 文档大小 **/
size: number;
/** 文档链接 **/
url: string;
}