mirror of
https://github.com/certd/certd.git
synced 2026-05-16 05:07:32 +08:00
chore:
This commit is contained in:
@@ -21,4 +21,8 @@ export class BuiltInPluginService {
|
||||
getGroups() {
|
||||
return cloneDeep(pluginGroups);
|
||||
}
|
||||
|
||||
getByType(type: string) {
|
||||
return pluginRegistry.getDefine(type);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -127,4 +127,8 @@ export class PluginService extends BaseService<PluginEntity> {
|
||||
}
|
||||
throw new Error('参数错误: id 和 name 必须有一个');
|
||||
}
|
||||
|
||||
async getDefineByType(type: string) {
|
||||
return this.builtInPluginService.getByType(type);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user