feat: 将/support/faq界面迁移至Directus
- 路由界面脚本修改 - 视图模型相关定义
This commit is contained in:
@ -1,8 +1,8 @@
|
||||
/**
|
||||
* 常见问题视图模型
|
||||
* 用于常见问题(/support/faqs)渲染的数据结构
|
||||
* 用于产品页常见问题渲染的数据结构
|
||||
*/
|
||||
export interface QuestionView {
|
||||
export interface ProductQuestionView {
|
||||
/** 唯一标识符 **/
|
||||
id: number;
|
||||
|
||||
36
app/models/views/QuestionListVuew.ts
Normal file
36
app/models/views/QuestionListVuew.ts
Normal file
@ -0,0 +1,36 @@
|
||||
/**
|
||||
* 问题关联产品类型模型
|
||||
* 用于在常见问题列表中提供产品筛选功能
|
||||
*/
|
||||
export interface QuestionListProductType {
|
||||
id: number;
|
||||
name: string;
|
||||
}
|
||||
|
||||
/**
|
||||
* 问题关联产品模型
|
||||
* 用于在常见问题列表中提供产品筛选功能
|
||||
*/
|
||||
export interface QuestionListProduct {
|
||||
id: number;
|
||||
name: string;
|
||||
type: QuestionListProductType;
|
||||
}
|
||||
|
||||
/**
|
||||
* 常见问题列表视图模型
|
||||
* 用于常见问题列表(/support/faq)页面渲染的数据结构
|
||||
*/
|
||||
export interface QuestionListView {
|
||||
/** 唯一标识符 **/
|
||||
id: number;
|
||||
|
||||
/** 问题标题 **/
|
||||
title: string;
|
||||
|
||||
/** 问题内容 **/
|
||||
content: string;
|
||||
|
||||
/** 关联产品 **/
|
||||
products: QuestionListProduct[];
|
||||
}
|
||||
Reference in New Issue
Block a user