perf: 插件贡献文档及示例

This commit is contained in:
xiaojunnuo
2024-03-22 00:50:02 +08:00
parent d9efc3d4d8
commit 72fb20abf3
43 changed files with 890 additions and 22 deletions

View File

@@ -1,12 +1,9 @@
import { Provide, Scope, ScopeEnum } from "@midwayjs/decorator";
import { Provide, Scope, ScopeEnum } from '@midwayjs/decorator';
import { InjectEntityModel } from '@midwayjs/typeorm';
import { Repository } from 'typeorm';
import { BaseService } from '../../../basic/base-service';
import { AccessEntity } from '../entity/access';
import {
accessRegistry,
IAccessService,
} from '@certd/pipeline';
import { accessRegistry, IAccessService } from '@certd/pipeline';
/**
* 授权
@@ -38,7 +35,8 @@ export class AccessService
return accessRegistry.getDefineList();
}
getDefineByType(type) {
getDefineByType(type: string) {
return accessRegistry.getDefine(type);
}
}