fix actions

This commit is contained in:
jxxghp
2025-02-19 08:33:15 +08:00
parent 1889a829b5
commit 15e1fb61ac
10 changed files with 340 additions and 0 deletions
+34
View File
@@ -0,0 +1,34 @@
from app.actions import BaseAction
from app.schemas import ActionParams, ActionContext
class AddSubscribeParams(ActionParams):
"""
添加订阅参数
"""
pass
class AddSubscribeAction(BaseAction):
"""
添加订阅
"""
@property
def name(self) -> str:
return "添加订阅"
@property
def description(self) -> str:
return "根据媒体列表添加订阅"
@property
def done(self) -> bool:
return True
@property
def success(self) -> bool:
return True
async def execute(self, params: AddSubscribeParams, context: ActionContext) -> ActionContext:
pass