From 34050827bf7f609ea589a83682f7da1c9d883fed Mon Sep 17 00:00:00 2001 From: iapyang Date: Tue, 5 Jul 2022 15:42:18 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E8=AE=BE=E7=BD=AEtemplate?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bin/cli/worker/template/action_type.ts | 0 bin/cli/worker/template/main_thread_template.ts | 5 +++++ bin/cli/worker/template/worker_thread_template.ts | 5 +++++ 3 files changed, 10 insertions(+) create mode 100644 bin/cli/worker/template/action_type.ts create mode 100644 bin/cli/worker/template/main_thread_template.ts create mode 100644 bin/cli/worker/template/worker_thread_template.ts diff --git a/bin/cli/worker/template/action_type.ts b/bin/cli/worker/template/action_type.ts new file mode 100644 index 000000000..e69de29bb diff --git a/bin/cli/worker/template/main_thread_template.ts b/bin/cli/worker/template/main_thread_template.ts new file mode 100644 index 000000000..8df764495 --- /dev/null +++ b/bin/cli/worker/template/main_thread_template.ts @@ -0,0 +1,5 @@ +class CrudMainTreadWorker extends BI.Workers.MainThreadWorker { + protected initActions(): void { + // to init some actions + } +} diff --git a/bin/cli/worker/template/worker_thread_template.ts b/bin/cli/worker/template/worker_thread_template.ts new file mode 100644 index 000000000..fc457c9c7 --- /dev/null +++ b/bin/cli/worker/template/worker_thread_template.ts @@ -0,0 +1,5 @@ +class CrudWorkerTreadWorker extends BI.Workers.MainThreadWorker { + protected initActions(): void { + // to init some actions + } +}