mirror of
https://github.com/Yuyi-Oak/BlueArchiveToolkit.git
synced 2026-09-18 10:04:55 +08:00
@@ -54,6 +54,9 @@ type ScheduleBackend interface {
|
||||
// by the dashboard. It does not create arbitrary translation jobs.
|
||||
type TranslationBackend interface {
|
||||
TranslationTaskUpdate(ctx context.Context, params backendrpc.TranslationTaskUpdateParams) (json.RawMessage, error)
|
||||
TranslationTasks(ctx context.Context, params backendrpc.TranslationTaskListParams) (json.RawMessage, error)
|
||||
TranslationHandoff(ctx context.Context) (json.RawMessage, error)
|
||||
TranslationWorkerRun(ctx context.Context, params backendrpc.TranslationWorkerRunParams) (*backendrpc.TranslationWorkerRunResult, error)
|
||||
TranslationProofread(ctx context.Context) (json.RawMessage, error)
|
||||
}
|
||||
|
||||
@@ -117,6 +120,18 @@ func (r RPCClient) TranslationTaskUpdate(ctx context.Context, params backendrpc.
|
||||
return r.Client.TranslationTaskUpdate(ctx, params)
|
||||
}
|
||||
|
||||
func (r RPCClient) TranslationTasks(ctx context.Context, params backendrpc.TranslationTaskListParams) (json.RawMessage, error) {
|
||||
return r.Client.TranslationTasks(ctx, params)
|
||||
}
|
||||
|
||||
func (r RPCClient) TranslationHandoff(ctx context.Context) (json.RawMessage, error) {
|
||||
return r.Client.TranslationHandoff(ctx)
|
||||
}
|
||||
|
||||
func (r RPCClient) TranslationWorkerRun(ctx context.Context, params backendrpc.TranslationWorkerRunParams) (*backendrpc.TranslationWorkerRunResult, error) {
|
||||
return r.Client.TranslationWorkerRun(ctx, params)
|
||||
}
|
||||
|
||||
func (r RPCClient) TranslationProofread(ctx context.Context) (json.RawMessage, error) {
|
||||
return r.Client.TranslationProofread(ctx)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user