From 8d25ccbc43742060034dae25cff174c2163bc96f Mon Sep 17 00:00:00 2001 From: xuebin Date: Fri, 17 Apr 2020 02:06:26 +0800 Subject: [PATCH] =?UTF-8?q?feat(PreferenceSchema):=20=E5=A2=9E=E5=8A=A0?= =?UTF-8?q?=E9=A6=96=E9=A1=B5=E6=A8=A1=E5=9D=97=E8=87=AA=E5=AE=9A=E4=B9=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/schemas/Preference.ts | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/schemas/Preference.ts b/src/schemas/Preference.ts index 55e995c4b..a6973223b 100644 --- a/src/schemas/Preference.ts +++ b/src/schemas/Preference.ts @@ -14,6 +14,10 @@ export interface PreferenceTipMap { [key: string]: boolean | string } +export interface CustomPortalMap { + [key: string]: boolean +} + export interface PreferenceSchema { _id: PreferenceId _userId: UserId @@ -47,6 +51,7 @@ export interface PreferenceSchema { switcherOn: boolean memberBarMode: string isUsePanel: boolean + customPortal: CustomPortalMap } const Schema: SchemaDef = { @@ -146,6 +151,9 @@ const Schema: SchemaDef = { }, tips: { type: RDBType.OBJECT + }, + customPortal: { + type: RDBType.OBJECT } }