Browse Source

fix: 添加注释

master
fajiao 2 years ago
parent
commit
92fa22d471
  1. 10
      Cis.Core/Common/Entity/ServiceBase.cs

10
Cis.Core/Common/Entity/ServiceBase.cs

@ -59,6 +59,11 @@ public class ServiceBase<T> : IDynamicApiController where T : EntityBase, new()
return await _baseRep.UpdateAsync(entity);
}
/// <summary>
/// 批量更新实体类
/// </summary>
/// <param name="array">实体类数组</param>
/// <returns></returns>
[HttpPost]
public virtual async Task<bool> UpdateArray([Required][FromForm] T[] array)
{
@ -76,6 +81,11 @@ public class ServiceBase<T> : IDynamicApiController where T : EntityBase, new()
return await _baseRep.DeleteByIdAsync(id);
}
/// <summary>
/// 批量删除实体类
/// </summary>
/// <param name="array">实体类数组</param>
/// <returns></returns>
[HttpPost]
public virtual async Task<bool> DeleteArray([Required][FromForm] T[] array)
{

Loading…
Cancel
Save