-
Notifications
You must be signed in to change notification settings - Fork 4.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* chaoyang * fix-auth * add toolkit * add order * plugin usage * fix * delete console:
- Loading branch information
1 parent
5fa2e3c
commit 14c7e01
Showing
48 changed files
with
955 additions
and
189 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
import { connectionMongo, getMongoModel } from '../../../common/mongo/index'; | ||
import { PluginGroupSchemaType, TGroupType } from './type'; | ||
const { Schema } = connectionMongo; | ||
|
||
export const collectionName = 'app_plugin_groups'; | ||
|
||
const PluginGroupSchema = new Schema({ | ||
groupAvatar: { | ||
type: String, | ||
default: '' | ||
}, | ||
groupName: { | ||
type: String, | ||
required: true | ||
}, | ||
groupTypes: { | ||
type: Array<TGroupType>, | ||
default: [] | ||
}, | ||
groupOrder: { | ||
type: Number, | ||
default: 0 | ||
} | ||
}); | ||
|
||
PluginGroupSchema.index({ groupName: 1 }); | ||
|
||
export const MongoPluginGroupsSchema = getMongoModel<PluginGroupSchemaType>( | ||
collectionName, | ||
PluginGroupSchema | ||
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
export type PluginGroupSchemaType = { | ||
groupAvatar: string; | ||
groupName: string; | ||
groupTypes: TGroupType[]; | ||
groupOrder: number; | ||
}; | ||
|
||
export type TGroupType = { | ||
typeName: string; | ||
typeId: string; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.