feat: 为搜索条目添加细分类型

- 类型细分:有原先的四大分类添加细分类型,例如产品(原纸分切机)
- 接口调整:原先的type分类改为sectionType并将type作为细分类型使用
This commit is contained in:
2025-12-05 16:49:09 +08:00
parent 36d24a4740
commit f1398a5545
7 changed files with 48 additions and 25 deletions

View File

@ -57,6 +57,9 @@ export interface MeiliQuestionIndex {
/** 问题内容 **/
content?: string;
/** 问题类型 **/
type?: string;
/** 相关产品 **/
products: string[];
@ -74,6 +77,9 @@ export interface MeiliProductDocumentIndex {
/** 文档标题 **/
title: string;
/** 文档类型 **/
type?: string;
/** 相关产品 **/
products: string[];

View File

@ -3,13 +3,16 @@ export interface SearchItemView {
id: number | string;
/** 条目类型 **/
type: 'product' | 'solution' | 'question' | 'document';
sectionType: 'product' | 'solution' | 'question' | 'document';
/** 条目标题 **/
title: string;
/** 条目摘要 **/
summary: string;
summary?: string;
/** 条目分类 **/
type?: string;
/** 条目预览图 **/
thumbnail?: string;