Browse Source

feat: action基础类

es6
iapyang 3 years ago
parent
commit
0ee6430c63
  1. 28
      typescript/core/worker/action/worker.action.ts

28
typescript/core/worker/action/worker.action.ts

@ -0,0 +1,28 @@
import type WorkerBaseController from "../controller/worker.controller";
/**
*
*/
export default abstract class WorkerBaseAction {
/**
*
*/
protected controller: WorkerBaseController;
/**
* 线 action ,
*/
protected threadAction: any;
public constructor(controller: WorkerBaseController, threadAction: any) {
this.controller = controller;
this.threadAction = threadAction;
this.addActionHandler();
}
/**
*
*/
protected abstract addActionHandler(): void;
}
Loading…
Cancel
Save