UserConstants.cs 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115
  1. namespace Model
  2. {
  3. public class UserConstants
  4. {
  5. /// <summary>
  6. /// 平台内系统用户的唯一标志
  7. /// </summary>
  8. public static string SYS_USER = "SYS_USER";
  9. /// <summary>
  10. /// 正常状态
  11. /// </summary>
  12. public static string NORMAL = "0";
  13. /// <summary>
  14. /// 异常状态
  15. /// </summary>
  16. public static string EXCEPTION = "1";
  17. /// <summary>
  18. /// 用户封禁状态
  19. /// </summary>
  20. public static string USER_DISABLE = "1";
  21. /// <summary>
  22. /// 角色封禁状态
  23. /// </summary>
  24. public static string ROLE_DISABLE = "1";
  25. /// <summary>
  26. /// 部门正常状态
  27. /// </summary>
  28. public static int DEPT_NORMAL = 0;
  29. /// <summary>
  30. /// 部门停用状态
  31. /// </summary>
  32. public static string DEPT_DISABLE = "1";
  33. /// <summary>
  34. /// 字典正常状态
  35. /// </summary>
  36. public static string DICT_NORMAL = "0";
  37. /// <summary>
  38. /// 是否为系统默认(是)
  39. /// </summary>
  40. public static string YES = "Y";
  41. /// <summary>
  42. /// 是否菜单外链(是)
  43. /// </summary>
  44. public static string YES_FRAME = "1";
  45. /// <summary>
  46. /// 是否菜单外链(否)
  47. /// </summary>
  48. public static string NO_FRAME = "0";
  49. /// <summary>
  50. /// 菜单类型(目录)
  51. /// </summary>
  52. public static string TYPE_DIR = "M";
  53. /// <summary>
  54. /// 菜单类型(菜单)
  55. /// </summary>
  56. public static string TYPE_MENU = "C";
  57. /// <summary>
  58. /// 菜单类型(按钮)
  59. /// </summary>
  60. public static string TYPE_BUTTON = "F";
  61. ///// <summary>
  62. ///// 菜单类型(链接)
  63. ///// </summary>
  64. //public static string TYPE_LINK = "L";
  65. /// <summary>
  66. /// Layout组件标识
  67. /// </summary>
  68. public static string LAYOUT = "Layout";
  69. /// <summary>
  70. /// ParentView组件标识
  71. /// </summary>
  72. public static string PARENT_VIEW = "ParentView";
  73. /// <summary>
  74. /// InnerLink组件标识
  75. /// </summary>
  76. public static string INNER_LINK = "InnerLink";
  77. /// <summary>
  78. /// 校验返回结果码
  79. /// </summary>
  80. public static string UNIQUE = "0";
  81. public static string NOT_UNIQUE = "1";
  82. /// <summary>
  83. /// http请求
  84. /// </summary>
  85. public static string HTTP = "http://";
  86. /// <summary>
  87. /// https请求
  88. /// </summary>
  89. public static string HTTPS = "https://";
  90. /// <summary>
  91. /// www主域
  92. /// </summary>
  93. public static string WWW = "www.";
  94. }
  95. }