feat: 将/support/faq界面迁移至Directus

- 路由界面脚本修改
- 视图模型相关定义
This commit is contained in:
2025-10-18 16:24:45 +08:00
parent f53b86cbb6
commit 46e79f0b5c
6 changed files with 186 additions and 55 deletions

View File

@ -1,8 +1,8 @@
/**
*
* (/support/faqs)
*
*/
export interface QuestionView {
export interface ProductQuestionView {
/** 唯一标识符 **/
id: number;

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