feat: directus视图与转换函数
- views: 用于前端渲染的视图模型 - mapper: 用于视图模型转换的转换函数 - utils: 相关工具函数
This commit is contained in:
14
app/models/views/QuestionView.ts
Normal file
14
app/models/views/QuestionView.ts
Normal file
@ -0,0 +1,14 @@
|
||||
/**
|
||||
* 常见问题视图模型
|
||||
* 用于常见问题(/support/faqs)渲染的数据结构
|
||||
*/
|
||||
export interface QuestionView {
|
||||
/** 唯一标识符 **/
|
||||
id: number;
|
||||
|
||||
/** 问题标题 **/
|
||||
title: string;
|
||||
|
||||
/** 问题内容 **/
|
||||
content: string;
|
||||
}
|
||||
Reference in New Issue
Block a user