package com.sundot.airport.ledger.service;

/**
 * 台账 → score_event 同步服务
 */
public interface ILedgerSyncService {

    /** 全量同步所有台账（手动触发 / 定时任务调用） */
    SyncResult syncAll();

    /** 按台账类型同步（支持单表重跑） */
    SyncResult syncByType(String ledgerType);

    /** 同步结果 */
    class SyncResult {
        private int totalInserted;
        private int totalSkipped;
        private String detail;

        public SyncResult(int inserted, int skipped, String detail) {
            this.totalInserted = inserted;
            this.totalSkipped = skipped;
            this.detail = detail;
        }
        public int getTotalInserted() { return totalInserted; }
        public int getTotalSkipped() { return totalSkipped; }
        public String getDetail() { return detail; }
    }
}
