mirror of
https://github.com/alex289/CleanArchitecture.git
synced 2025-06-29 18:21:08 +00:00
17 lines
537 B
C#
17 lines
537 B
C#
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text.Json.Serialization;
|
|
|
|
namespace CleanArchitecture.Api.Models;
|
|
|
|
public sealed class ResponseMessage<T>
|
|
{
|
|
[JsonPropertyName("success")] public bool Success { get; init; }
|
|
|
|
[JsonPropertyName("errors")] public IEnumerable<string>? Errors { get; init; }
|
|
|
|
[JsonPropertyName("detailedErrors")]
|
|
public IEnumerable<DetailedError> DetailedErrors { get; init; } = Enumerable.Empty<DetailedError>();
|
|
|
|
[JsonPropertyName("data")] public T? Data { get; init; }
|
|
} |