diff --git a/cmd/api/main.go b/cmd/api/main.go index 4c8ba45..097fe1e 100644 --- a/cmd/api/main.go +++ b/cmd/api/main.go @@ -138,7 +138,7 @@ func run(ctx context.Context, getenv func(string) string) error { ProductionReleaseAuthorizationToken: releaseAuthorizationToken, // 数据源发现(系统设置 → 数据源配置):用与 worker 同一份 dws 状态做只读列举。 DingtalkSources: dingtalkSourceLister{}, - BackupSchedule: postgresstore.NewStore(pool), + BackupSchedule: postgresstore.NewStore(pool), BackupHost: backuphost.New(backuphost.Config{ SSHConfig: config.BackupHostSSHConfig, Target: config.BackupHostTarget, diff --git a/internal/httpapi/dingtalk_discovery.go b/internal/httpapi/dingtalk_discovery.go index 94a9e0b..f988ebe 100644 --- a/internal/httpapi/dingtalk_discovery.go +++ b/internal/httpapi/dingtalk_discovery.go @@ -47,4 +47,4 @@ func listDingtalkSources(w http.ResponseWriter, r *http.Request, config Config) return } writeJSON(w, http.StatusOK, map[string]any{"data": result}) -} \ No newline at end of file +} diff --git a/internal/httpapi/server.go b/internal/httpapi/server.go index a10064f..862cc5a 100644 --- a/internal/httpapi/server.go +++ b/internal/httpapi/server.go @@ -128,9 +128,9 @@ type Config struct { ProductionReleaseAuthorizationToken string // DingtalkSources 枚举「我账号下能看到」的钉钉知识库与钉盘空间(只读,dws)。 // 未接线时对应路由返回 501,页面显示"列不出来"而不是空列表。 - DingtalkSources dingtalkSourcesLister - NewID func() (string, error) - Auth *AuthConfig + DingtalkSources dingtalkSourcesLister + NewID func() (string, error) + Auth *AuthConfig } func NewHandler(config Config) (http.Handler, error) { diff --git a/internal/platform/postgres/catalog_scan_progress_integration_test.go b/internal/platform/postgres/catalog_scan_progress_integration_test.go index f24b44e..f6a51ca 100644 --- a/internal/platform/postgres/catalog_scan_progress_integration_test.go +++ b/internal/platform/postgres/catalog_scan_progress_integration_test.go @@ -82,4 +82,4 @@ VALUES('conn-head','snap-head',now());`); err != nil { if item.StartedAt.IsZero() { t.Fatal("started_at should carry the scan start so the page can show a time") } -} \ No newline at end of file +} diff --git a/internal/version/version.go b/internal/version/version.go index df56e81..e82daa2 100644 --- a/internal/version/version.go +++ b/internal/version/version.go @@ -25,4 +25,4 @@ var ( Number = "dev" CommitSHA = "unknown" BuildTime = "unknown" -) \ No newline at end of file +) diff --git a/internal/version/version_test.go b/internal/version/version_test.go index f9a602e..fb3173b 100644 --- a/internal/version/version_test.go +++ b/internal/version/version_test.go @@ -37,4 +37,4 @@ func TestNumberMatchesChangelog(t *testing.T) { "常见原因:改了 CHANGELOG 却没重新构建(产物还报旧号),"+ "或者构建时手填了一个 CHANGELOG 里没有的号", Number, want) } -} \ No newline at end of file +}