From 448177c5f07c2a63071fe3ebb5bb79894b0606ed Mon Sep 17 00:00:00 2001
From: schangxiang@126.com <schangxiang@126.com>
Date: 周二, 13 5月 2025 17:57:36 +0800
Subject: [PATCH] 3

---
 Weben_CMS专用代码生成器/Code/Templete/AppService/IAppService模板.txt |   59 +++++++++++++++++++++++++++++++++++++++++++++++++----------
 1 files changed, 49 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 d314fbf..6ed0b79 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$;
+锘縰sing 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;
 
 /// <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,35 @@
     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);
 }

--
Gitblit v1.9.3