mirror of
https://github.com/jxxghp/MoviePilot.git
synced 2026-09-07 00:16:57 +08:00
add Note Action
This commit is contained in:
@@ -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
|
||||||
Reference in New Issue
Block a user