平安校园
Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.

SystemConst.cs 3.4 KiB

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