2023-12-16 20:25:12 +03:30
|
|
|
|
namespace NetinaShop.Domain.Models.Settings;
|
|
|
|
|
|
|
|
|
|
|
|
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;
|
2024-02-25 18:21:01 +03:30
|
|
|
|
public string AdminPanelBaseUrl { get; set; } = string.Empty;
|
2024-04-10 20:52:32 +03:30
|
|
|
|
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();
|
2024-04-15 21:01:40 +03:30
|
|
|
|
public UserSetting Manager { get; set; } = new UserSetting();
|
2023-12-16 20:25:12 +03:30
|
|
|
|
public string KaveNegarApiKey { 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;
|
|
|
|
|
|
}
|