| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576 |
- using System.Collections.Generic;
- using System.Web.Mvc;
- using Abp.Localization;
- using IwbZero;
- using IwbZero.Authorization.Base.Roles;
- using IwbZero.Authorization.Base.Users;
- namespace WeApp.Configuration
- {
- public class IwbCacheNames
- {
- public const string FunctionCache = "FunctionCache";
- public const string NavFunctionCache = "NavFunctionCache";
- public const string PackageInfoCache = "PackageInfoCache";
- public const string GroupInfoCache = "GroupInfoCache";
- public const string GroupRunningInfoCache = "GroupRunningInfoCache";
- public const string CampInfoCache = "CampInfoCache";
- public const string CampPortraitInfoCache = "CampPortraitInfoCache";
- public const string SceneInfoCache = "SceneInfoCache";
- public static readonly List<string> RefreshList = new List<string>()
- {
- PackageInfoCache,
- CampInfoCache,
- GroupInfoCache,
- GroupRunningInfoCache,
- SceneInfoCache,
- CampPortraitInfoCache,
- NavFunctionCache,
- FunctionCache,
- UserPermissionCacheItem.CacheStoreName,
- RolePermissionCacheItem.CacheStoreName,
- };
- public static List<SelectListItem> GetCacheList()
- {
- var sList = new List<SelectListItem> { new SelectListItem() { Value = "", Text = L("CacheAll") } };
- foreach (var l in RefreshList)
- {
- sList.Add(new SelectListItem() { Value = l, Text = L(l) });
- }
- return sList;
- }
- private static string L(string name)
- {
- var str = LocalizationHelper.GetSource(IwbZeroConsts.LocalizationSourceName).GetString(name);
- return str;
- }
- //public static List<CacheItem> Caches => new List<CacheItem>()
- //{
- // new CacheItem(FunctionCache),
- //};
- }
- //public class CacheItem
- //{
- // public CacheItem()
- // {
- // }
- // public CacheItem(string name, string displayName)
- // {
- // Name = name;
- // DisplayName = displayName;
- // }
- // public CacheItem(string name)
- // {
- // Name = name;
- // DisplayName = name;
- // }
- // public string Name { get; set; }
- // public string DisplayName { get; set; }
- //}
- }
|