using APT.Infrastructure.Core;
using APT.BaseData.Domain.ApiModel;
using APT.BaseData.Domain.Entities.FM;
using System;
using APT.Infrastructure.Api;
namespace APT.BaseData.Domain.IServices.FM
{
    public interface IFMImportService : ICommonService
    {
        /// <summary>
        /// 获取导入配置信息
        /// </summary>
        /// <param name="orgId"></param>
        /// <param name="configCode"></param>
        /// <returns></returns>
        ImportConfigModel GetImportConfig(Guid orgId, string configCode);

        /// <summary>
        /// 获取导入配置信息
        /// </summary>
        /// <param name="orgId"></param>
        /// <param name="configCode"></param>
        /// <returns></returns>
        dynamic DownLoadFile(dynamic config);

        /// <summary>
        /// 获取导入数据
        /// </summary>
        /// <param name="orgId"></param>
        /// <param name="configCode"></param>
        /// <param name="filePath"></param>
        /// <returns></returns>
        ImportDataModel GetImortData(Guid orgId, string configCode, string filePath, bool isUpdate = false, bool delFlag = false);
    }
}
