mirror of
https://github.com/Yuyi-Oak/BlueArchiveToolkit.git
synced 2026-09-18 10:04:55 +08:00
feat(bat): 补全工作流校验与调度过滤
新增 parse clear-cache 和 i18n validate,补齐 schedule 的作用域过滤与单轮执行上限,并将列表过滤参数暴露给 bat-api dashboard。同步 RPC、OpenAPI、用户文档和回归测试。 Refs #43
This commit is contained in:
@@ -249,10 +249,19 @@ type ScheduleMutationParams struct {
|
||||
Enabled *bool `json:"enabled,omitempty"`
|
||||
}
|
||||
|
||||
// ScheduleListParams filters the Rust-owned schedule store.
|
||||
type ScheduleListParams struct {
|
||||
ID string `json:"id,omitempty"`
|
||||
Group string `json:"group,omitempty"`
|
||||
Enabled *bool `json:"enabled,omitempty"`
|
||||
}
|
||||
|
||||
// ScheduleRunParams selects a schedule or runs every due enabled schedule.
|
||||
type ScheduleRunParams struct {
|
||||
ID string `json:"id,omitempty"`
|
||||
Force bool `json:"force,omitempty"`
|
||||
ID string `json:"id,omitempty"`
|
||||
Group string `json:"group,omitempty"`
|
||||
Force bool `json:"force,omitempty"`
|
||||
MaxRuns *uint64 `json:"max_runs,omitempty"`
|
||||
}
|
||||
|
||||
// Ack is returned by accepted daemon control methods.
|
||||
@@ -454,6 +463,10 @@ func (c *Client) ScheduleList(ctx context.Context) (json.RawMessage, error) {
|
||||
return c.rawData(ctx, "schedule.list", nil)
|
||||
}
|
||||
|
||||
func (c *Client) ScheduleListFiltered(ctx context.Context, params ScheduleListParams) (json.RawMessage, error) {
|
||||
return c.rawData(ctx, "schedule.list", params)
|
||||
}
|
||||
|
||||
func (c *Client) ScheduleAdd(ctx context.Context, params ScheduleMutationParams) (json.RawMessage, error) {
|
||||
return c.rawData(ctx, "schedule.add", params)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user