diff --git a/Bootstrap.DataAccess/Helper/DictHelper.cs b/Bootstrap.DataAccess/Helper/DictHelper.cs index 9bbf59c6..5980561a 100644 --- a/Bootstrap.DataAccess/Helper/DictHelper.cs +++ b/Bootstrap.DataAccess/Helper/DictHelper.cs @@ -10,25 +10,22 @@ using System.Linq; namespace Bootstrap.DataAccess { /// - /// + /// 字典配置数据操作帮助类 /// public static class DictHelper { - /// - /// - /// /// /// 缓存索引,BootstrapAdmin后台清理缓存时使用 /// public const string RetrieveDictsDataKey = DbHelper.RetrieveDictsDataKey; /// - /// + /// 缓存索引,字典分类数据缓存键值 值为 DictHelper-RetrieveDictsCategory /// public const string RetrieveCategoryDataKey = "DictHelper-RetrieveDictsCategory"; /// - /// + /// 获得所有字典项配置数据集合方法 内部使用了缓存,缓存值 BootstrapMenu-RetrieveMenus /// /// public static IEnumerable RetrieveDicts() => CacheManager.GetOrAdd(RetrieveDictsDataKey, key => DbContextManager.Create().RetrieveDicts()); @@ -66,7 +63,7 @@ namespace Bootstrap.DataAccess } /// - /// + /// 配置 IP 地理位置查询配置项 注入方法调用此方法 /// /// public static void ConfigIPLocator(IPLocatorOption op) @@ -100,13 +97,13 @@ namespace Bootstrap.DataAccess public static IEnumerable RetrieveCategories() => CacheManager.GetOrAdd(RetrieveCategoryDataKey, key => DbContextManager.Create().RetrieveCategories()); /// - /// + /// 获取站点 Title 配置信息 /// /// public static string RetrieveWebTitle() => DbContextManager.Create().RetrieveWebTitle(); /// - /// + /// 获取站点 Footer 配置信息 /// /// public static string RetrieveWebFooter() => DbContextManager.Create().RetrieveWebFooter(); @@ -130,63 +127,63 @@ namespace Bootstrap.DataAccess public static string RetrieveIconFolderPath() => DbContextManager.Create().RetrieveIconFolderPath(); /// - /// 获得默认的前台首页地址,默认为~/Home/Index + /// 获得默认的前台首页地址,默认为 ~/Home/Index /// /// 应用程序编码 /// public static string RetrieveHomeUrl(string appCode) => DbContextManager.Create().RetrieveHomeUrl(appCode); /// - /// + /// 获取所有应用程序数据方法 /// /// public static IEnumerable> RetrieveApps() => DbContextManager.Create().RetrieveApps(); /// - /// 程序异常时长 默认1月 + /// 程序异常时长 默认 1 个月 /// /// public static int RetrieveExceptionsLogPeriod() => DbContextManager.Create().RetrieveExceptionsLogPeriod(); /// - /// + /// 获得操作日志保留时长 默认 12 个月 /// /// public static int RetrieveLogsPeriod() => DbContextManager.Create().RetrieveLogsPeriod(); /// - /// + /// 获得登录日志保留时长 默认 12 个月 /// /// public static int RetrieveLoginLogsPeriod() => DbContextManager.Create().RetrieveLoginLogsPeriod(); /// - /// + /// 获取登录认证Cookie保留时长 默认 7 天 /// /// public static int RetrieveCookieExpiresPeriod() => DbContextManager.Create().RetrieveCookieExpiresPeriod(); /// - /// + /// 获取 IP 地址位置查询服务名称 /// /// public static string RetrieveLocaleIPSvr() => DbContextManager.Create().RetrieveLocaleIPSvr(); /// - /// + /// 通过 IP 地理位置查询服务名称获得请求地址方法 /// /// ip地址请求服务名称 /// public static string RetrieveLocaleIPSvrUrl(string ipSvr) => DbContextManager.Create().RetrieveLocaleIPSvrUrl(ipSvr); /// - /// + /// 获取 IP 地理位置查询服务缓存时长 /// /// public static string RetrieveLocaleIPSvrCachePeriod() => DbContextManager.Create().RetrieveLocaleIPSvrCachePeriod(); /// - /// 访问日志保留时长 默认一个月 + /// 访问日志保留时长 默认 1 个月 /// /// public static int RetrieveAccessLogPeriod() => DbContextManager.Create().RetrieveAccessLogPeriod();