galaeth-draft/Galaeth.ApiServer/Models/Common/DataResultModel.cs

18 lines
439 B
C#
Raw Permalink Normal View History

2024-11-17 10:31:01 +01:00
using System.Text.Json.Serialization;
namespace Galaeth.ApiServer.Models.Common;
/// <summary>
/// Result with data model.
/// </summary>
/// <typeparam name="TDataType">The data type being returned.</typeparam>
public class DataResultModel<TDataType> : ResultModel
where TDataType : class
{
/// <summary>
/// Included data payload.
/// </summary>
[JsonPropertyName("data")]
public TDataType Data { get; set; }
}