feat: midway注解方式编写插件

This commit is contained in:
xiaojunnuo
2023-01-07 23:22:02 +08:00
parent e4ec4e1404
commit 52522f27e9
16 changed files with 156 additions and 238 deletions
@@ -1,7 +1,7 @@
import { AbstractAccess, IAccessService } from "../../src";
import { IAccess, IAccessService } from "../../src";
import { aliyunSecret } from "../user.secret";
export class AccessServiceTest implements IAccessService {
async getById(id: any): Promise<AbstractAccess> {
async getById(id: any): Promise<IAccess> {
return {
...aliyunSecret,
} as any;