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