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:
Hue
2026-02-21 18:08:09 +01:00
committed by GitHub
+4
View File
@@ -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);