refactor: modularize application domains

This commit is contained in:
kkfluous
2026-08-13 12:03:34 +08:00
parent d610e4b841
commit 06fe75b4c7
142 changed files with 14645 additions and 8885 deletions
+10
View File
@@ -0,0 +1,10 @@
import { ensureSchedulingTables } from './routes/scheduling/db-schema.js';
import { startMileageBackgroundJobs } from './routes/mileage/index.js';
/** 启动只应在服务进程中运行的数据库准备和定时任务。 */
export function startBackgroundServices(): void {
ensureSchedulingTables().catch((error) => {
console.error('scheduling bootstrap error:', error);
});
startMileageBackgroundJobs();
}