From 5a149d626ae8bc3fa4bddbb53f8caf40f51f6da6 Mon Sep 17 00:00:00 2001 From: zs <zhousong@weben-smart.com> Date: 周三, 04 6月 2025 17:42:13 +0800 Subject: [PATCH] Merge branch 'master' of http://222.71.245.114:9086/r/HIA24016N_PipeLineDemo --- Weben_CMS专用代码生成器/Code/Templete/AppService/IAppService模板.txt | 73 +++++++++++++++++++++++++++++++----- 1 files changed, 63 insertions(+), 10 deletions(-) diff --git "a/Weben_CMS\344\270\223\347\224\250\344\273\243\347\240\201\347\224\237\346\210\220\345\231\250/Code/Templete/AppService/IAppService\346\250\241\346\235\277.txt" "b/Weben_CMS\344\270\223\347\224\250\344\273\243\347\240\201\347\224\237\346\210\220\345\231\250/Code/Templete/AppService/IAppService\346\250\241\346\235\277.txt" index 44ebadb..29229e8 100644 --- "a/Weben_CMS\344\270\223\347\224\250\344\273\243\347\240\201\347\224\237\346\210\220\345\231\250/Code/Templete/AppService/IAppService\346\250\241\346\235\277.txt" +++ "b/Weben_CMS\344\270\223\347\224\250\344\273\243\347\240\201\347\224\237\346\210\220\345\231\250/Code/Templete/AppService/IAppService\346\250\241\346\235\277.txt" @@ -1,29 +1,49 @@ -using CMS.Plugin.$NameSpacePath$.Application.Contracts.Dtos.$EntityName$s; +锘縰sing CMS.Plugin.$NameSpacePath$.Application.Contracts.Dtos.$EntityName$; +using CMS.Plugin.$NameSpacePath$.Domain.$EntityName$; +using CmsQueryExtensions.Entitys; +using System.Linq.Expressions; using Volo.Abp.Application.Services; namespace CMS.Plugin.$NameSpacePath$.Application.Contracts.Services; /// <summary> -/// $ChinaComment$应用服务接口 +/// $ChinaComment$搴旂敤鏈嶅姟鎺ュ彛 /// </summary> public interface I$EntityName$AppService : ICrudAppService<$EntityName$Dto, Guid, Get$EntityName$Input, $EntityName$CreateDto, $EntityName$UpdateDto> { /// <summary> - /// 克隆$ChinaComment$ + /// 鍏嬮殕$ChinaComment$ /// </summary> /// <param name="ids"></param> /// <returns></returns> - Task<List<$EntityName$Dto>> CloneAsync(IEnumerable<Guid> ids); + Task<List<$EntityName$Dto>> CloneAsync(IEnumerable<Guid> ids, MyCurrentUser myCurrentUser); /// <summary> - /// 删除$ChinaComment$ + /// 鍒犻櫎$ChinaComment$ /// </summary> /// <param name="ids"></param> /// <returns></returns> - Task DeleteManyAsync(IEnumerable<Guid> ids); + Task DeleteManyAsync(IEnumerable<Guid> ids, MyCurrentUser myCurrentUser); /// <summary> - /// 调整排序$ChinaComment$ + /// 鐗╃悊鍒犻櫎$ChinaComment$ + /// </summary> + /// <param name="id">涓婚敭ID</param> + /// <param name="cancellationToken"></param> + /// <returns></returns> + Task DeletePermanentlyAsync(Guid id, MyCurrentUser myCurrentUser, CancellationToken cancellationToken = default); + + + /// <summary> + /// 鎵归噺鐗╃悊鍒犻櫎$ChinaComment$锛堢洿鎺ュ垹闄わ紝涓嶈蒋鍒犻櫎锛� + /// </summary> + /// <param name="ids">瑕佸垹闄ょ殑涓婚敭ID鍒楄〃</param> + /// <param name="cancellationToken"></param> + /// <returns></returns> + Task BatchDeletePermanentlyAsync(IEnumerable<Guid> ids, MyCurrentUser myCurrentUser, CancellationToken cancellationToken = default); + + /// <summary> + /// 璋冩暣鎺掑簭$ChinaComment$ /// </summary> /// <param name="id"></param> /// <param name="sort"></param> @@ -31,16 +51,49 @@ Task AdjustSortAsync(Guid id, int sort); /// <summary> - /// 导入$ChinaComment$ + /// 瀵煎叆$ChinaComment$ /// </summary> /// <param name="input"></param> /// <returns></returns> - Task ImportAsync($EntityName$sImportModel input); + Task ImportAsync($EntityName$sImportModel input, MyCurrentUser myCurrentUser); /// <summary> - /// 导出$ChinaComment$ + /// 瀵煎嚭$ChinaComment$ /// </summary> /// <param name="input"></param> /// <returns></returns> Task<(Dictionary<string, object> Sheets, string FileName)> ExportAsync(Get$EntityName$Input input); + + /// <summary> + /// 鏍规嵁鏉′欢鑾峰彇$ChinaComment$鍒楄〃 + /// </summary> + /// <param name="whereConditions"></param> + /// <param name="cancellationToken"></param> + /// <returns></returns> + Task<List<$EntityName$>> GetListByFilterAsync(Expression<Func<$EntityName$, bool>> whereConditions, CancellationToken cancellationToken = default); + + + /// <summary> + /// 鏍规嵁鏉′欢鑾峰彇鍗曚釜$ChinaComment$ + /// </summary> + /// <param name="whereConditions"></param> + /// <param name="isMultipleThrowException">鏄惁鏌ヨ鍑哄鏉″氨鎶ラ敊</param> + /// <param name="cancellationToken"></param> + /// <returns></returns> + /// <exception cref="UserFriendlyException"></exception> + Task<$EntityName$> GetSingleByFilterAsync(Expression<Func<$EntityName$, bool>> whereConditions, bool is鈥婱ultipleThrowException = false, CancellationToken cancellationToken = default); + + /// <summary> + /// 鏍规嵁鏉′欢鑾峰彇$ChinaComment$鍒楄〃 + /// </summary> + /// <param name="input"></param> + /// <returns></returns> + Task<List<$EntityName$Dto>> FindListByFilterAsync(Get$EntityName$Input input, CancellationToken cancellationToken = default); + + /// <summary> + /// 鏍规嵁鏉′欢鑾峰彇鍗曚釜$ChinaComment$ + /// </summary> + /// <param name="input"></param> + /// <returns></returns> + Task<$EntityName$Dto> FindSingleByFilterAsync(Get$EntityName$Input input, CancellationToken cancellationToken = default); } -- Gitblit v1.9.3