O
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

131 lines
2.2 KiB

​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
2 years ago
​
​
  1. package com.xujie.sys.common.utils;
  2. /**
  3. * 常量
  4. *
  5. *
  6. */
  7. public class Constant {
  8. /** 超级管理员ID */
  9. public static final int SUPER_ADMIN = 1;
  10. /**
  11. * 当前页码
  12. */
  13. public static final String PAGE = "page";
  14. /**
  15. * 每页显示记录数
  16. */
  17. public static final String LIMIT = "limit";
  18. /**
  19. * 排序字段
  20. */
  21. public static final String ORDER_FIELD = "sidx";
  22. /**
  23. * 排序方式
  24. */
  25. public static final String ORDER = "order";
  26. /**
  27. * 升序
  28. */
  29. public static final String ASC = "asc";
  30. /**
  31. * 项目类型
  32. */
  33. public static final String ITEM_TYPE ="rx";
  34. /**
  35. * pda菜单
  36. */
  37. public static final String PDA_MENU = "pda";
  38. /**
  39. * pc菜单
  40. */
  41. public static final String PC_MENU = "pc";
  42. /**
  43. * 菜单类型
  44. */
  45. public enum MenuType {
  46. /**
  47. * 目录
  48. */
  49. CATALOG(0),
  50. /**
  51. * 菜单
  52. */
  53. MENU(1),
  54. /**
  55. * 按钮
  56. */
  57. BUTTON(2);
  58. private int value;
  59. MenuType(int value) {
  60. this.value = value;
  61. }
  62. public int getValue() {
  63. return value;
  64. }
  65. }
  66. /**
  67. * 定时任务状态
  68. */
  69. public enum ScheduleStatus {
  70. /**
  71. * 正常
  72. */
  73. NORMAL(0),
  74. /**
  75. * 暂停
  76. */
  77. PAUSE(1);
  78. private int value;
  79. ScheduleStatus(int value) {
  80. this.value = value;
  81. }
  82. public int getValue() {
  83. return value;
  84. }
  85. }
  86. /**
  87. * 云服务商
  88. */
  89. public enum CloudService {
  90. /**
  91. * 七牛云
  92. */
  93. QINIU(1),
  94. /**
  95. * 阿里云
  96. */
  97. ALIYUN(2),
  98. /**
  99. * 腾讯云
  100. */
  101. QCLOUD(3);
  102. private int value;
  103. CloudService(int value) {
  104. this.value = value;
  105. }
  106. public int getValue() {
  107. return value;
  108. }
  109. }
  110. public static final String XJ = "XJ";
  111. public static final String QUOTATION_CODE_NO = "XJ001";
  112. public static final String QUOTATION_CODE_TYPE = "PRICECHECK";
  113. }