feat: 大屏改为纯流式自适应布局,新增KPI带与产线动态拓扑地图

This commit is contained in:
SunYF
2026-10-28 10:10:17 +08:00
parent 1f10c3091e
commit 4d3c4e2c3a
131 changed files with 18118 additions and 1728 deletions
+14
View File
@@ -37,6 +37,20 @@ func RegisterRoutes(server *rest.Server, serverCtx *svc.ServiceContext) {
{Method: http.MethodPost, Path: "/permissions", Handler: CreatePermissionHandler(serverCtx)},
{Method: http.MethodPut, Path: "/permissions", Handler: UpdatePermissionHandler(serverCtx)},
{Method: http.MethodDelete, Path: "/permissions/:id", Handler: DeletePermissionHandler(serverCtx)},
// 备份到外部存储(U盘/移动硬盘)+ 按时间窗物理清理
{Method: http.MethodGet, Path: "/backup/items", Handler: BackupItemsHandler(serverCtx)},
{Method: http.MethodPost, Path: "/backup/start", Handler: BackupStartHandler(serverCtx)},
{Method: http.MethodGet, Path: "/backup/progress", Handler: BackupProgressHandler(serverCtx)},
{Method: http.MethodPost, Path: "/cleanup/check", Handler: CleanupCheckHandler(serverCtx)},
{Method: http.MethodPost, Path: "/cleanup/start", Handler: CleanupStartHandler(serverCtx)},
{Method: http.MethodGet, Path: "/cleanup/progress", Handler: CleanupProgressHandler(serverCtx)},
// 数据归档增强:目录选择器 / 提醒 / 预览 / 历史
{Method: http.MethodGet, Path: "/backup/drives", Handler: BackupDrivesHandler(serverCtx)},
{Method: http.MethodGet, Path: "/backup/listdir", Handler: BackupListDirHandler(serverCtx)},
{Method: http.MethodGet, Path: "/backup/reminder", Handler: BackupReminderHandler(serverCtx)},
{Method: http.MethodPost, Path: "/cleanup/preview", Handler: CleanupPreviewHandler(serverCtx)},
{Method: http.MethodGet, Path: "/backup/records", Handler: BackupRecordsHandler(serverCtx)},
}
server.AddRoutes(
rest.WithMiddlewares([]rest.Middleware{permissionGuard(serverCtx)}, jwtAdmin...),