✨ feat(schedulerAdmin): 允许定时任务删除、暂停、恢复命令支持多ID操作

This commit is contained in:
webjoin111
2025-10-29 18:38:08 +08:00
parent 9bba83cfe6
commit b74fb66939
2 changed files with 9 additions and 9 deletions
@@ -147,8 +147,8 @@ schedule_cmd = on_alconna(
Subcommand(
"删除",
Args[
"schedule_id?",
int,
"schedule_ids?",
MultiVar(int),
Field(unmatch_tips=lambda text: f"任务ID '{text}' 必须是数字!"),
],
*create_targeting_options(),
@@ -158,8 +158,8 @@ schedule_cmd = on_alconna(
Subcommand(
"暂停",
Args[
"schedule_id?",
int,
"schedule_ids?",
MultiVar(int),
Field(unmatch_tips=lambda text: f"任务ID '{text}' 必须是数字!"),
],
*create_targeting_options(),
@@ -169,8 +169,8 @@ schedule_cmd = on_alconna(
Subcommand(
"恢复",
Args[
"schedule_id?",
int,
"schedule_ids?",
MultiVar(int),
Field(unmatch_tips=lambda text: f"任务ID '{text}' 必须是数字!"),
],
*create_targeting_options(),