mirror of
https://github.com/BinaryAlley/Nemera.git
synced 2026-12-03 06:11:10 +00:00
Renames Model to Dto
This commit is contained in:
1 parent
76b9596a27
commit
3aa9702411
32 files changed
+179
-139
No files matched your search
@@ -0,0 +1,19 @@
|
||||
#region ========================================================================= USING =====================================================================================
|
||||
using System.Diagnostics;
|
||||
#endregion
|
||||
|
||||
namespace Lumina.Infrastructure.Common.Models.DTO.Configuration;
|
||||
|
||||
/// <summary>
|
||||
/// Data transfer object for deserializing shared application configuration settings.
|
||||
/// </summary>
|
||||
[DebuggerDisplay("{SECTION_NAME}")]
|
||||
public class CommonSettingsDto
|
||||
{
|
||||
public const string SECTION_NAME = "CommonSettings";
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the theme of the application.
|
||||
/// </summary>
|
||||
public required string Theme { get; init; }
|
||||
}
|
||||
@@ -0,0 +1,19 @@
|
||||
#region ========================================================================= USING =====================================================================================
|
||||
using System.Diagnostics;
|
||||
#endregion
|
||||
|
||||
namespace Lumina.Infrastructure.Common.Models.DTO.Configuration;
|
||||
|
||||
/// <summary>
|
||||
/// Data transfer object for deserializing media settings.
|
||||
/// </summary>
|
||||
[DebuggerDisplay("{SECTION_NAME}")]
|
||||
public class CorsSettingsDto
|
||||
{
|
||||
public const string SECTION_NAME = "CorsSettings";
|
||||
|
||||
/// <summary>
|
||||
/// The allowed hosts in regards to cross-origin resource sharing rules.
|
||||
/// </summary>
|
||||
public required string[] AllowedOrigins { get; init; }
|
||||
}
|
||||
@@ -0,0 +1,19 @@
|
||||
#region ========================================================================= USING =====================================================================================
|
||||
using System.Diagnostics;
|
||||
#endregion
|
||||
|
||||
namespace Lumina.Infrastructure.Common.Models.DTO.Configuration;
|
||||
|
||||
/// <summary>
|
||||
/// Data transfer object for deserializing database configuration settings.
|
||||
/// </summary>
|
||||
[DebuggerDisplay("{SECTION_NAME}")]
|
||||
public class DatabaseSettingsDto
|
||||
{
|
||||
public const string SECTION_NAME = "ConnectionStrings";
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the connection string to the database.
|
||||
/// </summary>
|
||||
public required string DefaultConnection { get; init; }
|
||||
}
|
||||
@@ -0,0 +1,19 @@
|
||||
#region ========================================================================= USING =====================================================================================
|
||||
using System.Diagnostics;
|
||||
#endregion
|
||||
|
||||
namespace Lumina.Infrastructure.Common.Models.DTO.Configuration;
|
||||
|
||||
/// <summary>
|
||||
/// Data transfer object for deserializing media settings.
|
||||
/// </summary>
|
||||
[DebuggerDisplay("{SECTION_NAME}")]
|
||||
public class EncryptionSettingsDto
|
||||
{
|
||||
public const string SECTION_NAME = "EncryptionSettings";
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the root directory where media files are stored.
|
||||
/// </summary>
|
||||
public required string SecretKey { get; init; }
|
||||
}
|
||||
@@ -0,0 +1,34 @@
|
||||
#region ========================================================================= USING =====================================================================================
|
||||
using System.Diagnostics;
|
||||
#endregion
|
||||
|
||||
namespace Lumina.Infrastructure.Common.Models.DTO.Configuration;
|
||||
|
||||
/// <summary>
|
||||
/// Data transfer object for deserializing media settings.
|
||||
/// </summary>
|
||||
[DebuggerDisplay("{SECTION_NAME}")]
|
||||
public class JwtSettingsDto
|
||||
{
|
||||
public const string SECTION_NAME = "JwtSettings";
|
||||
|
||||
/// <summary>
|
||||
/// The secret key used to sign the JWT. This should be a strong, securely stored key.
|
||||
/// </summary>
|
||||
public required string SecretKey { get; init; }
|
||||
|
||||
/// <summary>
|
||||
/// The duration (in minutes) for which the JWT is valid.
|
||||
/// </summary>
|
||||
public required int ExpiryMinutes { get; init; }
|
||||
|
||||
/// <summary>
|
||||
/// The issuer of the JWT, typically the application or service generating the token.
|
||||
/// </summary>
|
||||
public required string Issuer { get; init; }
|
||||
|
||||
/// <summary>
|
||||
/// The intended audience for the JWT, usually representing the clients that can consume the token.
|
||||
/// </summary>
|
||||
public required string Audience { get; init; }
|
||||
}
|
||||
Reference in new issue
Block a user