mirror of
https://github.com/aaronpo97/the-biergarten-app.git
synced 2026-07-16 17:47:22 +00:00
code style cleanup
This commit is contained in:
@@ -1,29 +1,29 @@
|
||||
namespace Shared.Contracts;
|
||||
|
||||
/// <summary>
|
||||
/// Generic envelope used to wrap API responses that carry a data payload alongside a human-readable message.
|
||||
/// Generic envelope used to wrap API responses that carry a data payload alongside a human-readable message.
|
||||
/// </summary>
|
||||
/// <typeparam name="T">The type of the data payload returned in the response.</typeparam>
|
||||
public record ResponseBody<T>
|
||||
{
|
||||
/// <summary>
|
||||
/// A human-readable message describing the outcome of the request.
|
||||
/// A human-readable message describing the outcome of the request.
|
||||
/// </summary>
|
||||
public required string Message { get; init; }
|
||||
|
||||
/// <summary>
|
||||
/// The data payload associated with the response.
|
||||
/// The data payload associated with the response.
|
||||
/// </summary>
|
||||
public required T Payload { get; init; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Envelope used to wrap API responses that carry only a human-readable message and no data payload.
|
||||
/// Envelope used to wrap API responses that carry only a human-readable message and no data payload.
|
||||
/// </summary>
|
||||
public record ResponseBody
|
||||
{
|
||||
/// <summary>
|
||||
/// A human-readable message describing the outcome of the request.
|
||||
/// A human-readable message describing the outcome of the request.
|
||||
/// </summary>
|
||||
public required string Message { get; init; }
|
||||
}
|
||||
}
|
||||
@@ -1,8 +1,8 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
<PropertyGroup>
|
||||
<TargetFramework>net10.0</TargetFramework>
|
||||
<ImplicitUsings>enable</ImplicitUsings>
|
||||
<Nullable>enable</Nullable>
|
||||
<RootNamespace>Shared.Contracts</RootNamespace>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup>
|
||||
<TargetFramework>net10.0</TargetFramework>
|
||||
<ImplicitUsings>enable</ImplicitUsings>
|
||||
<Nullable>enable</Nullable>
|
||||
<RootNamespace>Shared.Contracts</RootNamespace>
|
||||
</PropertyGroup>
|
||||
</Project>
|
||||
|
||||
Reference in New Issue
Block a user