Merge branch 'main' of http://gitea.cf/MES-FE/cut-abstractions
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "cut-abstractions",
|
"name": "cut-abstractions",
|
||||||
"version": "0.1.4",
|
"version": "0.1.5",
|
||||||
"description": "",
|
"description": "",
|
||||||
"files": [
|
"files": [
|
||||||
"dist/**/*"
|
"dist/**/*"
|
||||||
|
@@ -8,7 +8,7 @@ export abstract class ProcessorContext<TInput,TOutput,TConfig extends ConfigBase
|
|||||||
/**
|
/**
|
||||||
* 输入数据
|
* 输入数据
|
||||||
*/
|
*/
|
||||||
public Input?:TInput;
|
public input?:TInput;
|
||||||
/**
|
/**
|
||||||
* 合并配置文件与临时输入参
|
* 合并配置文件与临时输入参
|
||||||
*/
|
*/
|
||||||
@@ -16,14 +16,14 @@ export abstract class ProcessorContext<TInput,TOutput,TConfig extends ConfigBase
|
|||||||
/**
|
/**
|
||||||
* 输出数据
|
* 输出数据
|
||||||
*/
|
*/
|
||||||
public Ouput?:TOutput;
|
public output?:TOutput;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 处理器基类
|
* 处理器基类
|
||||||
*/
|
*/
|
||||||
export abstract class ProcessorBase<TInput,TOutput,TConfig extends ConfigBase> {
|
export abstract class ProcessorBase<TInput,TOutput,TConfig extends ConfigBase> {
|
||||||
public readonly name: string = '';
|
public abstract get name():string;
|
||||||
public readonly version: string = '1.0.0';
|
public abstract get version(): string;
|
||||||
public abstract exec(context:ProcessorContext<TInput,TOutput,TConfig>):Promise<void>|void
|
public abstract exec(context:ProcessorContext<TInput,TOutput,TConfig>):Promise<void>|void
|
||||||
}
|
}
|
Reference in New Issue
Block a user