feat: 为搜索条目添加细分类型
- 类型细分:有原先的四大分类添加细分类型,例如产品(原纸分切机) - 接口调整:原先的type分类改为sectionType并将type作为细分类型使用
This commit is contained in:
@ -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[];
|
||||
|
||||
|
||||
@ -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;
|
||||
|
||||
Reference in New Issue
Block a user