Add API Moudle!

This commit is contained in:
ben.qin
2021-12-30 17:31:16 +08:00
parent 14b03af584
commit af68984caa
4 changed files with 55 additions and 15 deletions
+2 -4
View File
@@ -28,8 +28,6 @@ implements Partial<ILifetime> {
}
class TestApi extends API<ITestApiInput, {}> {
public override key:string = "TestApi";
public override params: IParamSetting<ITestApiInput> = {
name: {
@@ -44,7 +42,7 @@ implements Partial<ILifetime> {
public constructor() {
super();
this.initLabel();
this.initLabel("TestApi");
this.emit("initData", {})
@@ -65,7 +63,7 @@ implements Partial<ILifetime> {
info: {
data: "abc"
}
});
}).run();
console.log(api);
}
}