Init: Create & Init ms Project...
Signed-off-by: MiaoWoo <admin@yumc.pw>
This commit is contained in:
25
packages/plugin/src/interfaces.ts
Normal file
25
packages/plugin/src/interfaces.ts
Normal file
@ -0,0 +1,25 @@
|
||||
import { injectable, postConstruct } from "inversify";
|
||||
import { getPluginMetadata } from './utils'
|
||||
|
||||
export namespace interfaces {
|
||||
@injectable()
|
||||
export abstract class Plugin {
|
||||
public description: PluginMetadata;
|
||||
protected logger: Console;
|
||||
|
||||
@postConstruct()
|
||||
private init() {
|
||||
this.logger = global.console;
|
||||
}
|
||||
|
||||
public load() { }
|
||||
public enable() { }
|
||||
public disable() { }
|
||||
}
|
||||
export interface PluginMetadata {
|
||||
name: string;
|
||||
version: string;
|
||||
author: string | string[];
|
||||
target?: any;
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user