using CMS.Plugin.PipeLineLems.Application.Contracts.Dtos.WorkTask; using CMS.Plugin.PipeLineLems.Domain.WorkTask; using CmsQueryExtensions.Entitys; using System.Linq.Expressions; using Volo.Abp.Application.Services; namespace CMS.Plugin.PipeLineLems.Application.Contracts.Services; /// /// 作业任务表应用服务接口 /// public interface IWorkTaskAppService : ICrudAppService { /// /// 克隆作业任务表 /// /// /// Task> CloneAsync(IEnumerable ids, MyCurrentUser myCurrentUser); /// /// 删除作业任务表 /// /// /// Task DeleteManyAsync(IEnumerable ids, MyCurrentUser myCurrentUser); /// /// 物理删除作业任务表 /// /// 主键ID /// /// Task DeletePermanentlyAsync(Guid id, MyCurrentUser myCurrentUser, CancellationToken cancellationToken = default); /// /// 批量物理删除作业任务表(直接删除,不软删除) /// /// 要删除的主键ID列表 /// /// Task BatchDeletePermanentlyAsync(IEnumerable ids, MyCurrentUser myCurrentUser, CancellationToken cancellationToken = default); /// /// 调整排序作业任务表 /// /// /// /// Task AdjustSortAsync(Guid id, int sort); /// /// 导入作业任务表 /// /// /// Task ImportAsync(WorkTasksImportModel input, MyCurrentUser myCurrentUser); /// /// 导出作业任务表 /// /// /// Task<(Dictionary Sheets, string FileName)> ExportAsync(GetWorkTaskInput input); /// /// 根据条件获取作业任务表列表 /// /// /// /// Task> GetListByFilterAsync(Expression> whereConditions, CancellationToken cancellationToken = default); /// /// 根据条件获取单个作业任务表 /// /// /// 是否查询出多条就报错 /// /// /// Task GetSingleByFilterAsync(Expression> whereConditions, bool is​MultipleThrowException = false, CancellationToken cancellationToken = default); /// /// 根据条件获取作业任务表列表 /// /// /// Task> FindListByFilterAsync(GetWorkTaskInput input, CancellationToken cancellationToken = default); /// /// 根据条件获取单个作业任务表 /// /// /// Task FindSingleByFilterAsync(GetWorkTaskInput input, CancellationToken cancellationToken = default); }