tk d26e4c77cc feat: 基础模块
注册登录
用户管理
角色管理
部门管理
消息管理
接口管理
菜单管理
字典管理
缓存管理
请求日志
系统设置
版本信息
代码生成
2023-11-17 19:12:47 +08:00

34 lines
937 B
C#

using NetAdmin.Cache;
using NetAdmin.SysComponent.Application.Services.Sys.Dependency;
using NetAdmin.SysComponent.Cache.Sys.Dependency;
namespace NetAdmin.SysComponent.Cache.Sys;
/// <inheritdoc cref="IConstantCache" />
public sealed class ConstantCache(IDistributedCache cache, IConstantService service) //
: DistributedCache<IConstantService>(cache, service), IScoped, IConstantCache
{
/// <inheritdoc />
public IDictionary<string, string> GetCharsDic()
{
return Service.GetCharsDic();
}
/// <inheritdoc />
public IDictionary<string, Dictionary<string, string[]>> GetEnums()
{
return Service.GetEnums();
}
/// <inheritdoc />
public IDictionary<string, string> GetLocalizedStrings()
{
return Service.GetLocalizedStrings();
}
/// <inheritdoc />
public IDictionary<string, long> GetNumbersDic()
{
return Service.GetNumbersDic();
}
}