refactor: 1

This commit is contained in:
xiaojunnuo
2022-11-07 23:31:20 +08:00
parent f710c00c0d
commit d66bc33761
97 changed files with 1384 additions and 3562 deletions
@@ -1,5 +0,0 @@
import { AbstractAccess } from "./abstract-access";
export interface IAccessService {
getById(id: any): Promise<AbstractAccess>;
}
+5
View File
@@ -1,6 +1,7 @@
import { Registrable } from "../registry";
import { accessRegistry } from "./registry";
import { FormItemProps } from "../d.ts";
import { AbstractAccess } from "./abstract-access";
export type AccessInput = FormItemProps & {
title: string;
@@ -17,3 +18,7 @@ export function IsAccess(define: AccessDefine) {
accessRegistry.install(target);
};
}
export interface IAccessService {
getById(id: any): Promise<AbstractAccess>;
}
@@ -1,28 +0,0 @@
import { IsAccess } from "../api";
import { AbstractAccess } from "../abstract-access";
@IsAccess({
name: "aliyun",
title: "阿里云授权",
desc: "",
input: {
accessKeyId: {
title: "accessKeyId",
component: {
placeholder: "accessKeyId",
},
required: true,
},
accessKeySecret: {
title: "accessKeySecret",
component: {
placeholder: "accessKeySecret",
},
required: true,
},
},
})
export class AliyunAccess extends AbstractAccess {
accessKeyId = "";
accessKeySecret = "";
}
@@ -1 +0,0 @@
export * from "./aliyun-access";
+1 -1
View File
@@ -1,3 +1,3 @@
export * from "./api";
export * from "./impl";
export * from "./abstract-access";
export * from "./registry";