package com.usky.issue.service;

import com.usky.issue.service.enums.SyncDirection;
import com.usky.issue.service.enums.SyncTypeEnum;

/**
 * 同步任务执行器（独立 Bean 保证事务生效）
 *
 * @author fyc
 * @date 2026-05-21
 */
public interface CloudSyncTaskRunner {

    com.usky.issue.domain.IssueSyncTask createTask(Long configId, SyncTypeEnum type, String triggerMode,
                                                   SyncDirection direction);

    void executeSyncTask(Long taskId, SyncTypeEnum type, SyncDirection direction);
}
