mirror of
https://github.com/nsnail/NetAdmin.git
synced 2025-08-04 04:48:01 +08:00
feat: ✨ 基础模块
注册登录 用户管理 角色管理 部门管理 消息管理 接口管理 菜单管理 字典管理 缓存管理 请求日志 系统设置 版本信息 代码生成
This commit is contained in:
34
src/backend/NetAdmin.Infrastructure/GlobalStatic.cs
Normal file
34
src/backend/NetAdmin.Infrastructure/GlobalStatic.cs
Normal file
@ -0,0 +1,34 @@
|
||||
namespace NetAdmin.Infrastructure;
|
||||
|
||||
/// <summary>
|
||||
/// 全局静态类
|
||||
/// </summary>
|
||||
public static class GlobalStatic
|
||||
{
|
||||
/// <summary>
|
||||
/// 产品版本
|
||||
/// </summary>
|
||||
public static readonly string ProductVersion
|
||||
= FileVersionInfo.GetVersionInfo(Assembly.GetEntryAssembly()!.Location).ProductVersion;
|
||||
|
||||
/// <summary>
|
||||
/// 调试模式
|
||||
/// </summary>
|
||||
public static bool DebugMode =>
|
||||
#if DEBUG
|
||||
true
|
||||
#else
|
||||
false
|
||||
#endif
|
||||
;
|
||||
|
||||
/// <summary>
|
||||
/// 系统内部密钥
|
||||
/// </summary>
|
||||
public static string SecretKey => "{6C4922D3-499A-46db-BFC4-0B51A9C4395F}";
|
||||
|
||||
/// <summary>
|
||||
/// Json序列化选项
|
||||
/// </summary>
|
||||
public static JsonSerializerOptions JsonSerializerOptions { get; set; }
|
||||
}
|
Reference in New Issue
Block a user