refactor(*): 代码质量 - 优化前后端实现并完善协议与画布验证
This commit is contained in:
1 parent
9be3aa8235
commit
87ecb3000c
724 files changed
+3045
-3884
No files matched your search
@@ -3,7 +3,7 @@ package generation
|
||||
import (
|
||||
"context"
|
||||
|
||||
"infinite-canvas/backend/internal/protocol"
|
||||
"yingce/backend/internal/protocol"
|
||||
)
|
||||
|
||||
// MediaResolver 水合参考媒体(资源 URL / data URL),由组合根注入,避免 generation → service 回环。
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
package generation
|
||||
|
||||
import (
|
||||
"infinite-canvas/backend/internal/protocol"
|
||||
"yingce/backend/internal/protocol"
|
||||
)
|
||||
|
||||
// Engine 是 generation 域的入口;由 service 组合根构造并注入 Deps。
|
||||
|
||||
@@ -3,7 +3,7 @@ package generation_test
|
||||
import (
|
||||
"testing"
|
||||
|
||||
"infinite-canvas/backend/internal/generation"
|
||||
"yingce/backend/internal/generation"
|
||||
)
|
||||
|
||||
func TestGenerationPackageHasEngineAndOfficialRegistry(t *testing.T) {
|
||||
|
||||
@@ -8,8 +8,8 @@ import (
|
||||
"strings"
|
||||
"sync"
|
||||
|
||||
"infinite-canvas/backend/internal/model"
|
||||
"infinite-canvas/backend/internal/protocol"
|
||||
"yingce/backend/internal/model"
|
||||
"yingce/backend/internal/protocol"
|
||||
)
|
||||
|
||||
type protocolRegistryContextKey struct{}
|
||||
|
||||
@@ -5,7 +5,7 @@ import (
|
||||
"net/http"
|
||||
"time"
|
||||
|
||||
"infinite-canvas/backend/internal/outbound"
|
||||
"yingce/backend/internal/outbound"
|
||||
)
|
||||
|
||||
// Input 是画布生成任务的统一输入合同。
|
||||
|
||||
Reference in new issue
Block a user