平安校园
Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.
 
 
 
 
 
 

146 строки
3.4 KiB

  1. //
  2. namespace SafeCampus.System;
  3. /// <summary>
  4. /// 系统层常量
  5. /// </summary>
  6. public class SystemConst
  7. {
  8. /// <summary>
  9. /// 系统配置表缓存Key
  10. /// </summary>
  11. public const string CACHE_DEV_CONFIG = CacheConst.CACHE_PREFIX_WEB + "SysConfig:";
  12. /// <summary>
  13. /// 登录验证码缓存Key
  14. /// </summary>
  15. public const string CACHE_CAPTCHA = CacheConst.CACHE_PREFIX_WEB + "Captcha:";
  16. /// <summary>
  17. /// 用户表缓存Key
  18. /// </summary>
  19. public const string CACHE_SYS_USER = CacheConst.CACHE_PREFIX_WEB + "SysUser";
  20. /// <summary>
  21. /// 用户头像缓存关系Key
  22. /// </summary>
  23. public const string CACHE_SYS_USER_AVATAR = CacheConst.CACHE_PREFIX_WEB + "SysUserAvatar";
  24. /// <summary>
  25. /// 用户手机号关系缓存Key
  26. /// </summary>
  27. public const string CACHE_SYS_USER_PHONE = CacheConst.CACHE_PREFIX_WEB + "SysUserPhone";
  28. /// <summary>
  29. /// 用户手机号关系缓存Key
  30. /// </summary>
  31. public const string CACHE_SYS_USER_ACCOUNT = CacheConst.CACHE_PREFIX_WEB + "SysUserAccount";
  32. /// <summary>
  33. /// 资源表缓存Key
  34. /// </summary>
  35. public const string CACHE_SYS_RESOURCE = CacheConst.CACHE_PREFIX_WEB + "SysResource:";
  36. /// <summary>
  37. /// 字典表缓存Key
  38. /// </summary>
  39. public const string CACHE_DEV_DICT = CacheConst.CACHE_PREFIX_WEB + "SysDict";
  40. /// <summary>
  41. /// 关系表缓存Key
  42. /// </summary>
  43. public const string CACHE_SYS_RELATION = CacheConst.CACHE_PREFIX_WEB + "SysRelation:";
  44. /// <summary>
  45. /// 机构表缓存Key
  46. /// </summary>
  47. public const string CACHE_SYS_ORG = CacheConst.CACHE_PREFIX_WEB + "SysOrg";
  48. /// <summary>
  49. /// 机构对应租户关系缓存Key
  50. /// </summary>
  51. public const string CACHE_SYS_ORG_TENANT = CacheConst.CACHE_PREFIX_WEB + "SysOrgTenant";
  52. /// <summary>
  53. /// 租户列表缓存
  54. /// </summary>
  55. public const string CACHE_SYS_TENANT = CacheConst.CACHE_PREFIX_WEB + "Tenant";
  56. /// <summary>
  57. /// 角色表缓存Key
  58. /// </summary>
  59. public const string CACHE_SYS_ROLE = CacheConst.CACHE_PREFIX_WEB + "SysRole";
  60. /// <summary>
  61. /// 职位表缓存Key
  62. /// </summary>
  63. public const string CACHE_SYS_POSITION = CacheConst.CACHE_PREFIX_WEB + "SysPosition";
  64. #region 登录错误次数
  65. /// <summary>
  66. /// 登录错误次数缓存Key
  67. /// </summary>
  68. public const string CACHE_LOGIN_ERROR_COUNT = CacheConst.CACHE_PREFIX_WEB + "LoginErrorCount:";
  69. #endregion 登录错误次数
  70. #region 操作
  71. /// <summary>
  72. /// 添加操作
  73. /// </summary>
  74. public const string ADD = "添加";
  75. /// <summary>
  76. /// 编辑操作
  77. /// </summary>
  78. public const string EDIT = "编辑";
  79. /// <summary>
  80. /// 启用操作
  81. /// </summary>
  82. public const string ENABLE = "启用";
  83. /// <summary>
  84. /// 禁用操作
  85. /// </summary>
  86. public const string DISABLE = "禁用";
  87. /// <summary>
  88. /// 重置密码操作
  89. /// </summary>
  90. public const string RESET_PWD = "重置密码";
  91. /// <summary>
  92. /// 用户授权操作
  93. /// </summary>
  94. public const string GRANT_ROLE = "授权";
  95. #endregion 操作
  96. #region 别称
  97. /// <summary>
  98. /// 组织
  99. /// </summary>
  100. public const string SYS_ORG = "组织";
  101. /// <summary>
  102. /// 职位
  103. /// </summary>
  104. public const string SYS_POS = "职位";
  105. #endregion 别称
  106. }