91 lines
2.3 KiB
C#
91 lines
2.3 KiB
C#
// 大名科技(天津)有限公司版权所有 电话:18020030720 QQ:515096995
|
||
//
|
||
// 此源代码遵循位于源代码树根目录中的 LICENSE 文件的许可证
|
||
|
||
namespace Admin.NET.Core;
|
||
|
||
/// <summary>
|
||
/// 缓存相关常量
|
||
/// </summary>
|
||
public class CacheConst
|
||
{
|
||
///// <summary>
|
||
///// 用户缓存
|
||
///// </summary>
|
||
//public const string KeyUser = "sys_user:";
|
||
|
||
///// <summary>
|
||
///// 用户菜单缓存
|
||
///// </summary>
|
||
//public const string KeyUserMenu = "sys_user_menu:";
|
||
|
||
/// <summary>
|
||
/// 用户权限缓存(按钮集合)
|
||
/// </summary>
|
||
public const string KeyUserButton = "sys_user_button:";
|
||
|
||
/// <summary>
|
||
/// 用户机构缓存
|
||
/// </summary>
|
||
public const string KeyUserOrg = "sys_user_org:";
|
||
|
||
/// <summary>
|
||
/// 角色最大数据范围缓存
|
||
/// </summary>
|
||
public const string KeyRoleMaxDataScope = "sys_role_maxDataScope:";
|
||
|
||
/// <summary>
|
||
/// 在线用户缓存
|
||
/// </summary>
|
||
public const string KeyUserOnline = "sys_user_online:";
|
||
|
||
/// <summary>
|
||
/// 图形验证码缓存
|
||
/// </summary>
|
||
public const string KeyVerCode = "sys_verCode:";
|
||
|
||
/// <summary>
|
||
/// 手机验证码缓存
|
||
/// </summary>
|
||
public const string KeyPhoneVerCode = "sys_phoneVerCode:";
|
||
|
||
/// <summary>
|
||
/// 密码错误次数缓存
|
||
/// </summary>
|
||
public const string KeyErrorPasswordCount = "sys_errorPasswordCount:";
|
||
|
||
/// <summary>
|
||
/// 租户缓存
|
||
/// </summary>
|
||
public const string KeyTenant = "sys_tenant";
|
||
|
||
/// <summary>
|
||
/// 常量下拉框
|
||
/// </summary>
|
||
public const string KeyConst = "sys_const:";
|
||
|
||
/// <summary>
|
||
/// 所有缓存关键字集合
|
||
/// </summary>
|
||
public const string KeyAll = "sys_keys";
|
||
|
||
/// <summary>
|
||
/// SqlSugar二级缓存
|
||
/// </summary>
|
||
public const string SqlSugar = "sys_sqlSugar:";
|
||
|
||
/// <summary>
|
||
/// 开放接口身份缓存
|
||
/// </summary>
|
||
public const string KeyOpenAccess = "sys_open_access:";
|
||
|
||
/// <summary>
|
||
/// 开放接口身份随机数缓存
|
||
/// </summary>
|
||
public const string KeyOpenAccessNonce = "sys_open_access_nonce:";
|
||
|
||
/// <summary>
|
||
/// 黑名单
|
||
/// </summary>
|
||
public const string KeyBlacklist = "sys_blacklist:";
|
||
} |