From e6080898057db259189dc6fd702badbbecdc53e2 Mon Sep 17 00:00:00 2001 From: jxxghp Date: Wed, 9 Jul 2025 12:22:22 +0800 Subject: [PATCH] add Note Action --- app/actions/note.py | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 app/actions/note.py diff --git a/app/actions/note.py b/app/actions/note.py new file mode 100644 index 00000000..49443905 --- /dev/null +++ b/app/actions/note.py @@ -0,0 +1,30 @@ +from app.actions import BaseAction +from app.schemas import ActionContext + + +class NoteAction(BaseAction): + """ + 备注 + """ + + @classmethod + @property + def name(cls) -> str: # noqa + return "备注" + + @classmethod + @property + def description(cls) -> str: # noqa + return "给工作流添加备注" + + @classmethod + @property + def data(cls) -> dict: # noqa + return {} + + @property + def success(self) -> bool: + return True + + def execute(self, workflow_id: int, params: dict, context: ActionContext) -> ActionContext: + return context