添加配置管理功能,包括获取和设置配置值的接口及实现
This commit is contained in:
31
Entity/ConfigEntity.cs
Normal file
31
Entity/ConfigEntity.cs
Normal file
@@ -0,0 +1,31 @@
|
||||
namespace Entity;
|
||||
|
||||
/// <summary>
|
||||
/// 配置实体
|
||||
/// </summary>
|
||||
[Table(Name = "Config")]
|
||||
public class ConfigEntity : BaseEntity
|
||||
{
|
||||
/// <summary>
|
||||
/// 配置Key
|
||||
/// </summary>
|
||||
public string Key { get; set; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// 配置Value
|
||||
/// </summary>
|
||||
public string Value { get; set; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// 配置类型
|
||||
/// </summary>
|
||||
public ConfigType Type { get; set; }
|
||||
}
|
||||
|
||||
public enum ConfigType
|
||||
{
|
||||
Boolean,
|
||||
String,
|
||||
Json,
|
||||
Number
|
||||
}
|
||||
Reference in New Issue
Block a user