fix(*): 素材库与画布 - 修复批量删除刷新、选择布局及工具引用

This commit is contained in:
ddCat
2026-09-21 20:14:05 +08:00
parent 4e0b0a9256
commit 0146a232a7
27 changed files with 852 additions and 109 deletions

View File

@@ -13,9 +13,10 @@ func TestUserDataIncrementalRoutesAreRegistered(t *testing.T) {
router := gin.New()
RegisterUserDataRoutes(router.Group("/api"), &service.Service{})
wanted := map[string]bool{
"GET /api/canvas-projects": false,
"GET /api/canvas-projects/:id": false,
"POST /api/assets/batch": false,
"GET /api/canvas-projects": false,
"GET /api/canvas-projects/:id": false,
"POST /api/assets/batch": false,
"POST /api/assets/batch-delete": false,
}
for _, route := range router.Routes() {
key := route.Method + " " + route.Path