添加项目文件。
This commit is contained in:
60
Atomx.Common/Configuration/ConfigKeys.cs
Normal file
60
Atomx.Common/Configuration/ConfigKeys.cs
Normal file
@@ -0,0 +1,60 @@
|
||||
namespace Atomx.Common.Configuration
|
||||
{
|
||||
public static class ConfigKeys
|
||||
{
|
||||
/// <summary>
|
||||
/// 常规通用 key
|
||||
/// </summary>
|
||||
public const string General = "System.General";
|
||||
|
||||
/// <summary>
|
||||
/// 文件上传 key
|
||||
/// </summary>
|
||||
public const string Upload = "System.Upload";
|
||||
|
||||
/// <summary>
|
||||
/// 系统消息 key
|
||||
/// </summary>
|
||||
public const string MessageProvider = "System.Message.Provider";
|
||||
|
||||
/// <summary>
|
||||
/// 邮件验证码 key
|
||||
/// </summary>
|
||||
public const string EmailCodeTemplate = "Email.Code.Template";
|
||||
|
||||
/// <summary>
|
||||
/// 邮件忘记密码 key
|
||||
/// </summary>
|
||||
public const string EmailForgetTemplate = "Email.Forget.Template";
|
||||
|
||||
/// <summary>
|
||||
/// 邮件促销活动 key
|
||||
/// </summary>
|
||||
public const string EmailPromotionTemplate = "Email.Promotion.Template";
|
||||
|
||||
/// <summary>
|
||||
/// 短信验证码 key
|
||||
/// </summary>
|
||||
public const string SMSCodeTemplate = "SMS.Code.Template";
|
||||
|
||||
/// <summary>
|
||||
/// 游戏商店最后刷新时间 key 模版
|
||||
/// </summary>
|
||||
public const string GameShopLastRefreshKeyTemplate = "GameShop.{0}.LastRefresh";
|
||||
|
||||
/// <summary>
|
||||
/// 游戏商店道具刷新缓存时间 key 模版
|
||||
/// </summary>
|
||||
public const string GameShopCacheTimeKeyTemplate = "GameShop.{0}.CacheTime";
|
||||
|
||||
/// <summary>
|
||||
/// 签到重置间隔 key 模版
|
||||
/// </summary>
|
||||
public const string SignInResetIntervalKeyTemplate = "SignIn.{0}.Reset.Interval";
|
||||
|
||||
/// <summary>
|
||||
/// 签到最后重置时间 key 模版
|
||||
/// </summary>
|
||||
public const string SignInLastResetKeyTemplate = "SignIn.{0}.Last.Reset.Time";
|
||||
}
|
||||
}
|
||||
50
Atomx.Common/Configuration/CurrencyNumber.cs
Normal file
50
Atomx.Common/Configuration/CurrencyNumber.cs
Normal file
@@ -0,0 +1,50 @@
|
||||
namespace Atomx.Common.Configuration
|
||||
{
|
||||
public static class CurrencyNumber
|
||||
{
|
||||
/// <summary>
|
||||
/// 金币
|
||||
/// </summary>
|
||||
public const int Gold = 1;
|
||||
|
||||
/// <summary>
|
||||
/// 宝石
|
||||
/// </summary>
|
||||
public const int Gem = 2;
|
||||
|
||||
/// <summary>
|
||||
/// 美元
|
||||
/// </summary>
|
||||
public const int USD = 100;
|
||||
|
||||
/// <summary>
|
||||
/// 人民币
|
||||
/// </summary>
|
||||
public const int CNY = 101;
|
||||
|
||||
/// <summary>
|
||||
/// 欧元
|
||||
/// </summary>
|
||||
public const int EUR = 102;
|
||||
|
||||
/// <summary>
|
||||
/// 港币
|
||||
/// </summary>
|
||||
public const int HKD = 102;
|
||||
|
||||
/// <summary>
|
||||
/// USDT
|
||||
/// </summary>
|
||||
public const int USDT = 1000;
|
||||
|
||||
/// <summary>
|
||||
/// 比特币
|
||||
/// </summary>
|
||||
public const int Bitcoin = 1001;
|
||||
|
||||
/// <summary>
|
||||
/// 以太坊
|
||||
/// </summary>
|
||||
public const int Ethereum = 1001;
|
||||
}
|
||||
}
|
||||
60
Atomx.Common/Configuration/GeneralConfig.cs
Normal file
60
Atomx.Common/Configuration/GeneralConfig.cs
Normal file
@@ -0,0 +1,60 @@
|
||||
namespace Atomx.Common.Configuration
|
||||
{
|
||||
/// <summary>
|
||||
/// 系统基本配置
|
||||
/// </summary>
|
||||
public class GeneralConfig
|
||||
{
|
||||
/// <summary>
|
||||
/// 名称
|
||||
/// </summary>
|
||||
public string Name { get; set; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// 网站的LOGO
|
||||
/// </summary>
|
||||
public string Logo { get; set; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// Meta 关键词
|
||||
/// </summary>
|
||||
public string Keywords { get; set; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// Meta 介绍
|
||||
/// </summary>
|
||||
public string Description { get; set; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// 域名
|
||||
/// </summary>
|
||||
public string Domain { get; set; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// 联系我们邮箱
|
||||
/// </summary>
|
||||
public string ContactEmail { get; set; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// 是否启用登录错误
|
||||
/// </summary>
|
||||
public bool EnableLoginErrorLock { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 登录错误最大上限
|
||||
/// </summary>
|
||||
public int LoginErrorMaxUpper { get; set; } = 5;
|
||||
|
||||
/// <summary>
|
||||
/// 登录错误锁定时长
|
||||
/// </summary>
|
||||
public int LoginErrorLockDuration { get; set; } = 30;
|
||||
|
||||
/// <summary>
|
||||
/// 是否多个法定货币钱包
|
||||
/// </summary>
|
||||
public bool MultipleLegalTenderWallets { get; set; } = false;
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
9
Atomx.Common/Configuration/StorageKeys.cs
Normal file
9
Atomx.Common/Configuration/StorageKeys.cs
Normal file
@@ -0,0 +1,9 @@
|
||||
namespace Atomx.Common.Configuration
|
||||
{
|
||||
public static class StorageKeys
|
||||
{
|
||||
public const string JWTTokenKeyName = "token";
|
||||
|
||||
public const string RefreshTokenKeyName = "refresh";
|
||||
}
|
||||
}
|
||||
40
Atomx.Common/Configuration/UploadConfig.cs
Normal file
40
Atomx.Common/Configuration/UploadConfig.cs
Normal file
@@ -0,0 +1,40 @@
|
||||
namespace Atomx.Common.Configuration
|
||||
{
|
||||
public class UploadConfig
|
||||
{
|
||||
/// <summary>
|
||||
/// 图片文件访问域名
|
||||
/// </summary>
|
||||
public string ImageDomain { get; set; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// 上传图片最大限制
|
||||
/// </summary>
|
||||
public int ImageMaxSize { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 上传文件最大限制
|
||||
/// </summary>
|
||||
public int FileMaxSize { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 允许上传图片类型
|
||||
/// </summary>
|
||||
public string ImageTypes { get; set; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// 允许上传文件类型
|
||||
/// </summary>
|
||||
public string FileTypes { get; set; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// 远程图片是否自动保存
|
||||
/// </summary>
|
||||
public bool RemoteAutoDownloadSave { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 启用云对象存储
|
||||
/// </summary>
|
||||
public bool StorageServiceEnabled { get; set; }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user