forked from fanruan/fineui
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
638 B
28 lines
638 B
import type { WorkerBaseController } from "../controller/worker.controller"; |
|
|
|
/** |
|
* 事务的基类 |
|
*/ |
|
export class WorkerBaseAction { |
|
/** |
|
* 通信控制器 |
|
*/ |
|
protected controller: WorkerBaseController; |
|
|
|
/** |
|
* 线程上的 action 集合, 用于调用其他命名空间下的事务 |
|
*/ |
|
protected threadAction: any; |
|
|
|
public constructor(controller: WorkerBaseController, threadAction: any) { |
|
this.controller = controller; |
|
this.threadAction = threadAction; |
|
|
|
this.addActionHandler(); |
|
} |
|
|
|
/** |
|
* 添加事务的处理器 |
|
*/ |
|
protected addActionHandler() {} |
|
}
|
|
|