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) {