37 lines
707 B
TypeScript
37 lines
707 B
TypeScript
/**
|
|
* 问题关联产品类型模型
|
|
* 用于在常见问题列表中提供产品筛选功能
|
|
*/
|
|
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[];
|
|
}
|