Batch is the new Bulk
This commit is contained in:
@@ -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; }
|
||||
|
||||
Reference in New Issue
Block a user