CommonConst.cs 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. namespace YBEE.EQM.Core;
  2. public class CommonConst
  3. {
  4. /// <summary>
  5. /// 系统用户ID
  6. /// </summary>
  7. public const int SYS_USER_ID = 1;
  8. public const string TEMP_FILE_ROOT = "temp";
  9. /// <summary>
  10. /// 默认密码
  11. /// </summary>
  12. public const string DEFAULT_PASSWORD = "123456";
  13. /// <summary>
  14. /// OFFER缓存
  15. /// </summary>
  16. public const string CACHE_KEY_OFFER = "offer_";
  17. /// <summary>
  18. /// 用户缓存
  19. /// </summary>
  20. public const string CACHE_KEY_USER = "user_";
  21. /// <summary>
  22. /// 菜单缓存
  23. /// </summary>
  24. public const string CACHE_KEY_MENU = "menu_";
  25. /// <summary>
  26. /// 菜单按钮权限缓存
  27. /// </summary>
  28. public const string CACHE_KEY_PERMISSION = "permission_";
  29. /// <summary>
  30. /// 数据范围缓存
  31. /// </summary>
  32. public const string CACHE_KEY_DATASCOPE = "datascope_";
  33. /// <summary>
  34. /// 角色数据权限范围缓存
  35. /// </summary>
  36. public const string CACHE_KEY_ROLE_DATASCOPE = "role_datascope_";
  37. /// <summary>
  38. /// 验证码缓存
  39. /// </summary>
  40. public const string CACHE_KEY_CODE = "vercode_";
  41. /// <summary>
  42. /// 所有缓存关键字集合
  43. /// </summary>
  44. public const string CACHE_KEY_ALL = "allkey";
  45. /// <summary>
  46. /// 定时任务缓存
  47. /// </summary>
  48. public const string CACHE_KEY_TIMER_JOB = "timerjob";
  49. /// <summary>
  50. /// 在线用户缓存
  51. /// </summary>
  52. public const string CACHE_KEY_ONLINE_USER = "onlineuser";
  53. /// <summary>
  54. /// 钉钉access token缓存
  55. /// </summary>
  56. public const string CACHE_KEY_DT_ACCESS_TOKEN = "dt_access_token";
  57. /// <summary>
  58. /// 系统管理员角色编码
  59. /// </summary>
  60. public const string SYS_MANAGER_ROLE_CODE = "sys_manager_role";
  61. /// <summary>
  62. /// 广告主
  63. /// </summary>
  64. public const string CACHE_KEY_ADVERTISER = "advertiser";
  65. /// <summary>
  66. /// 渠道
  67. /// </summary>
  68. public const string CACHE_KEY_CHANNEL = "channel";
  69. }