feat(domain): add workflow API core models and meta codes
This commit is contained in:
17
src/core/DigitalData.TaskFlow.Domain/Common/MetaEntry.cs
Normal file
17
src/core/DigitalData.TaskFlow.Domain/Common/MetaEntry.cs
Normal file
@@ -0,0 +1,17 @@
|
||||
namespace DigitalData.TaskFlow.Domain.Common;
|
||||
|
||||
/// <summary>
|
||||
/// Represents a single metadata item describing the business result state of an API response.
|
||||
/// </summary>
|
||||
public sealed record MetaEntry
|
||||
{
|
||||
/// <summary>
|
||||
/// Gets the domain-specific result code.
|
||||
/// </summary>
|
||||
public required int Code { get; init; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets the human-readable message that belongs to <see cref="Code"/>.
|
||||
/// </summary>
|
||||
public required string Message { get; init; }
|
||||
}
|
||||
Reference in New Issue
Block a user