chore: commit workspace updates
This commit is contained in:
@@ -13,11 +13,6 @@ type MediaResolver interface {
|
||||
HydrateGenerationMedia(userID string, input *Input, preferURL bool) error
|
||||
}
|
||||
|
||||
// UpstreamPolicy 控制私网/本机上游放行。
|
||||
type UpstreamPolicy interface {
|
||||
WithOutboundPolicy(ctx context.Context, allowLocal bool) context.Context
|
||||
}
|
||||
|
||||
// TaskProgress 写入任务进度/日志。
|
||||
type TaskProgress interface {
|
||||
SyncProviderTaskProgress(taskID string, responseBody []byte)
|
||||
@@ -47,7 +42,6 @@ type MediaPersister interface {
|
||||
// Deps 是 Engine 的外部端口集合;禁止持有组合根或回环到 service。
|
||||
type Deps struct {
|
||||
Media MediaResolver
|
||||
Upstream UpstreamPolicy
|
||||
Progress TaskProgress
|
||||
Billing BillingHooks
|
||||
Channel ChannelLimiter
|
||||
|
||||
@@ -62,7 +62,6 @@ type Config struct {
|
||||
APIFormat string `json:"apiFormat"`
|
||||
InterfaceType string `json:"interfaceType"`
|
||||
BaseURL string `json:"baseUrl"`
|
||||
AllowLocalChannel bool `json:"allowLocalChannel"`
|
||||
APIKey string `json:"apiKey"`
|
||||
SecretKey string `json:"secretKey"`
|
||||
Headers []outbound.OutboundHeader `json:"headers"`
|
||||
@@ -86,7 +85,6 @@ type Config struct {
|
||||
WebappID string `json:"webappId"`
|
||||
WorkflowJSON map[string]interface{} `json:"workflowJson"`
|
||||
WorkflowFields []WorkflowField `json:"workflowFields"`
|
||||
BridgeID string `json:"bridgeId"`
|
||||
RunningHubUseWallet bool `json:"runningHubUseWallet"`
|
||||
RunningHubWalletKey string `json:"runningHubWalletApiKey"`
|
||||
RunningHubUploadKey string `json:"runningHubUploadApiKey"`
|
||||
@@ -106,7 +104,7 @@ type Media struct {
|
||||
DurationMs int64 `json:"durationMs"`
|
||||
}
|
||||
|
||||
// WorkflowField 是 RunningHub/ComfyUI 共用的字段描述。完整工作流执行仍在 service。
|
||||
// WorkflowField 是云端工作流字段描述。完整工作流执行仍在 service。
|
||||
type WorkflowField struct {
|
||||
ID string `json:"id"`
|
||||
NodeID string `json:"nodeId"`
|
||||
|
||||
Reference in New Issue
Block a user