Commit Graph

3 Commits

Author SHA1 Message Date
20f3b79179 feat: bills expense type filter (backend join + frontend Select), sync stub docs 2026-07-06 14:48:47 +08:00
a568da160c feat(sync): implement sync stubs with env-var gating and status endpoint 2026-07-06 10:00:35 +08:00
09580e4a4e feat: P2-15 cron-based DingTalk/WeCom sync with logging and incremental sync
- Add @nestjs/schedule dependency
- Create SyncLog entity (platform, syncType, status, recordsCount, errorMessage, timestamps)
- Create SyncState entity for tracking lastSyncAt per platform
- SyncService with @Cron('0 2 * * *') daily scheduled sync
- Incremental sync: tracks last_sync_at per platform, passes to integration APIs
- Full/incremental mode determined by existence of prior sync
- SyncController: POST /sync/trigger (manual), GET /sync/logs (history)
- Register SyncModule in AppModule with ScheduleModule
2026-07-05 20:48:43 +08:00