Skip to content

Commit

Permalink
feat(PreferenceSchema): 增加首页模块自定义
Browse files Browse the repository at this point in the history
  • Loading branch information
xuebin authored and chuan6 committed Apr 30, 2020
1 parent 3c7eecf commit 13156a2
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/schemas/Preference.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@ export interface PreferenceTipMap {
[key: string]: boolean | string
}

export interface CustomPortalMap {
[key: string]: boolean
}

export interface PreferenceSchema {
_id: PreferenceId
_userId: UserId
Expand Down Expand Up @@ -47,6 +51,7 @@ export interface PreferenceSchema {
switcherOn: boolean
memberBarMode: string
isUsePanel: boolean
customPortal: CustomPortalMap
}

const Schema: SchemaDef<PreferenceSchema> = {
Expand Down Expand Up @@ -146,6 +151,9 @@ const Schema: SchemaDef<PreferenceSchema> = {
},
tips: {
type: RDBType.OBJECT
},
customPortal: {
type: RDBType.OBJECT
}
}

Expand Down

0 comments on commit 13156a2

Please sign in to comment.