mirror of
https://github.com/certd/certd.git
synced 2026-05-16 05:07:32 +08:00
feat: midway注解方式编写插件
This commit is contained in:
@@ -1,7 +1,5 @@
|
||||
import { Registrable } from "../registry";
|
||||
import { accessRegistry } from "./registry";
|
||||
import { FormItemProps } from "../d.ts";
|
||||
import { AbstractAccess } from "./abstract-access";
|
||||
|
||||
export type AccessInputDefine = FormItemProps & {
|
||||
title: string;
|
||||
@@ -13,5 +11,5 @@ export type AccessDefine = Registrable & {
|
||||
};
|
||||
};
|
||||
export interface IAccessService {
|
||||
getById(id: any): Promise<AbstractAccess>;
|
||||
getById(id: any): Promise<any>;
|
||||
}
|
||||
|
||||
@@ -9,7 +9,7 @@ import {
|
||||
saveModule,
|
||||
} from "@midwayjs/decorator";
|
||||
import { AccessDefine, AccessInputDefine } from "./api";
|
||||
import _ from "lodash-es";
|
||||
import _ from "lodash";
|
||||
import { accessRegistry } from "./registry";
|
||||
|
||||
// 提供一个唯一 key
|
||||
|
||||
Reference in New Issue
Block a user