Batch is the new Bulk

This commit is contained in:
2020-12-10 19:29:00 +00:00
parent 379673981f
commit 61cc48530a
17 changed files with 70 additions and 206 deletions

View File

@@ -428,9 +428,9 @@ namespace AyaNova.Api.Controllers
///
/// </summary>
/// <returns>No content</returns>
[HttpPost("bulk-delete")]
[HttpPost("batch-delete")]
[Authorize]
public async Task<IActionResult> PostBulkDelete([FromBody] List<long> idList)
public async Task<IActionResult> PostBatchDelete([FromBody] List<long> idList)
{
if (serverState.IsClosed)
return StatusCode(503, new ApiErrorResponse(serverState.ApiErrorCode, null, serverState.Reason));
@@ -463,9 +463,9 @@ namespace AyaNova.Api.Controllers
///
/// </summary>
/// <returns>No content</returns>
[HttpPost("bulk-move")]
[HttpPost("batch-move")]
[Authorize]
public async Task<IActionResult> PostBulkMove([FromBody] dtoBulkMove dt)
public async Task<IActionResult> PostBatchMove([FromBody] dtoBatchMove dt)
{
if (serverState.IsClosed)
return StatusCode(503, new ApiErrorResponse(serverState.ApiErrorCode, null, serverState.Reason));
@@ -497,7 +497,7 @@ namespace AyaNova.Api.Controllers
return NoContent();
}
public class dtoBulkMove
public class dtoBatchMove
{
public List<long> IdList { get; set; }
public AyaType ToType { get; set; }