mirror of
https://github.com/Stone-Red-Code/EchoHub.git
synced 2026-09-04 00:56:05 +02:00
Merge pull request #17 from HueByte/dev_api_update
feat: add ApiResponse and ApiResponse<T> records for improved API res…
This commit is contained in:
@@ -1,5 +1,9 @@
|
||||
namespace EchoHub.Core.DTOs;
|
||||
|
||||
public record ApiResponse(bool Success, string? Message = null, List<string>? Errors = null);
|
||||
|
||||
public record ApiResponse<T>(bool Success, string? Message = null, List<string>? Errors = null, T? Data = default);
|
||||
|
||||
public record ErrorResponse(string Error, string? Detail = null);
|
||||
|
||||
public record PaginatedResponse<T>(List<T> Items, int Total, int Offset, int Limit);
|
||||
|
||||
Reference in New Issue
Block a user