Api/Netina.Domain/Models/Settings/SiteSettings.cs

49 lines
1.9 KiB
C#
Raw Normal View History

2024-04-16 20:01:34 +03:30
namespace Netina.Domain.Models.Settings;
2023-12-16 20:25:12 +03:30
public class SiteSettings
{
public JwtSettings JwtSettings { get; set; } = new JwtSettings();
public string BaseUrl { get; set; } = string.Empty;
2024-04-12 18:30:10 +03:30
public string WebSiteUrl { get; set; } = string.Empty;
public string AdminPanelBaseUrl { get; set; } = string.Empty;
public string StorageBaseUrl { get; set; } = string.Empty;
2023-12-16 20:25:12 +03:30
public RedisSettings MasterRedisConfiguration { get; set; } = new RedisSettings();
public UserSetting UserSetting { get; set; } = new UserSetting();
public UserSetting Manager { get; set; } = new UserSetting();
2023-12-16 20:25:12 +03:30
public string KaveNegarApiKey { get; set; } = string.Empty;
public string LoginOtpTemplate { get; set; } = string.Empty;
2024-04-12 18:30:10 +03:30
public StorageSettings StorageSetting { get; set; } = new StorageSettings();
2023-12-16 20:25:12 +03:30
}
public class RedisSettings
{
public string Password { get; set; } = string.Empty;
public string ServiceName { get; set; } = string.Empty;
public string Host { get; set; } = string.Empty;
public int Port { get; set; }
}
2024-04-12 18:30:10 +03:30
public class StorageSettings
{
public string AccessKey { get; set; } = string.Empty;
public string SecretKey { get; set; } = string.Empty;
public string BucketKey { get; set; } = string.Empty;
}
2023-12-16 20:25:12 +03:30
public class JwtSettings
{
public string SecretKey { get; set; } = string.Empty;
public string Issuer { get; set; } = string.Empty;
public string Audience { get; set; } = string.Empty;
public int ExpireAddDay { get; set; }
}
public class UserSetting
{
public string Username { get; set; } = string.Empty;
public string Password { get; set; } = string.Empty;
public string Email { get; set; } = string.Empty;
public string RoleName { get; set; } = string.Empty;
public string FirstName { get; set; } = string.Empty;
public string LastName { get; set; } = string.Empty;
public string Phone { get; set; } = string.Empty;
}