From 92fa22d47186d904511656fce2490475524c6922 Mon Sep 17 00:00:00 2001 From: fajiao <1519100073@qq.com> Date: Tue, 6 Dec 2022 17:00:21 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E6=B7=BB=E5=8A=A0=E6=B3=A8=E9=87=8A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Cis.Core/Common/Entity/ServiceBase.cs | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/Cis.Core/Common/Entity/ServiceBase.cs b/Cis.Core/Common/Entity/ServiceBase.cs index 0bba6ee..a2c2b81 100644 --- a/Cis.Core/Common/Entity/ServiceBase.cs +++ b/Cis.Core/Common/Entity/ServiceBase.cs @@ -59,6 +59,11 @@ public class ServiceBase : IDynamicApiController where T : EntityBase, new() return await _baseRep.UpdateAsync(entity); } + /// + /// 批量更新实体类 + /// + /// 实体类数组 + /// [HttpPost] public virtual async Task UpdateArray([Required][FromForm] T[] array) { @@ -76,6 +81,11 @@ public class ServiceBase : IDynamicApiController where T : EntityBase, new() return await _baseRep.DeleteByIdAsync(id); } + /// + /// 批量删除实体类 + /// + /// 实体类数组 + /// [HttpPost] public virtual async Task DeleteArray([Required][FromForm] T[] array) {