mirror of
https://github.com/Yuyi-Oak/BlueArchiveToolkit.git
synced 2026-09-18 08:54:55 +08:00
feat(bat): 完善工作流调度与 dashboard RPC
补全资源拉取、解析、翻译、重打包和本地化发布命令,支持单次、限定次数与周期调度。移除 TUI 计划并通过 schedule.* RPC 暴露给 bat-api dashboard。 Closes #43
This commit is contained in:
+40
-2
@@ -115,16 +115,26 @@ paths:
|
||||
responses:
|
||||
"200":
|
||||
description: Admin links and allowlisted control actions.
|
||||
/admin/schedules:
|
||||
get:
|
||||
summary: List Rust-owned resource workflow schedules
|
||||
responses:
|
||||
"200":
|
||||
description: Current schedule JSON report.
|
||||
"401":
|
||||
description: Missing or invalid admin token.
|
||||
"503":
|
||||
description: Rust bat schedule backend is unavailable.
|
||||
/admin/control/{action}:
|
||||
post:
|
||||
summary: Forward an allowlisted control action to Rust bat
|
||||
summary: Forward an allowlisted control or schedule action to Rust bat
|
||||
parameters:
|
||||
- name: action
|
||||
in: path
|
||||
required: true
|
||||
schema:
|
||||
type: string
|
||||
enum: [reload, refresh, restart, sync, verify, repair, catalog-refresh]
|
||||
enum: [reload, refresh, restart, sync, verify, repair, catalog-refresh, schedule-add, schedule-update, schedule-remove, schedule-run]
|
||||
requestBody:
|
||||
required: false
|
||||
content:
|
||||
@@ -135,6 +145,34 @@ paths:
|
||||
properties:
|
||||
force:
|
||||
type: boolean
|
||||
id:
|
||||
type: string
|
||||
group:
|
||||
type: string
|
||||
action:
|
||||
type: string
|
||||
args:
|
||||
type: array
|
||||
items:
|
||||
type: string
|
||||
next_run_unix_seconds:
|
||||
type: integer
|
||||
format: int64
|
||||
delay_seconds:
|
||||
type: integer
|
||||
format: int64
|
||||
every_seconds:
|
||||
type: integer
|
||||
format: int64
|
||||
count:
|
||||
type: integer
|
||||
format: int64
|
||||
clear_args:
|
||||
type: boolean
|
||||
clear_every:
|
||||
type: boolean
|
||||
enabled:
|
||||
type: boolean
|
||||
responses:
|
||||
"202":
|
||||
description: Rust bat accepted the control request.
|
||||
|
||||
Reference in New Issue
Block a user