package com.friday.operation.api.distributor.service;

import com.friday.operation.api.distributor.dto.JobExecuteLogDto;
import com.friday.operation.api.distributor.dto.TaieJobRecord;
import com.friday.operation.api.distributor.dto.TaieTaskRecordFilter;
import com.friday.operation.api.distributor.dto.TaieTaskRecordPageResult;
import com.friday.base.common.response.DubboResult;

import java.util.ArrayList;

/**
 * @Description 任务分发运营数据服务 无需鉴权
 */
public interface IDistributorOperationService {
    /**
     * 分页查询任务执行记录
     */
    DubboResult<TaieTaskRecordPageResult> queryTaskRecordByPage(TaieTaskRecordFilter filter);

    /**
     * 查询任务执行详情 by taskId
     */
    DubboResult<ArrayList<TaieJobRecord>> queryTaskExecDetailByTaskId(String taskId);

    /**
     * 同步job执行记录
     */
    DubboResult syncJobLog(JobExecuteLogDto executeLog);

    /**
     * 查询job日志记录
     */
    DubboResult<ArrayList<JobExecuteLogDto>> queryJobExecDetailByInvokeId(Integer invokeId);

    /**
     * 查询job的module列表
     */
    DubboResult<ArrayList<String>> queryJobModuleByInvokeId(Integer invokeId);
}
