Constant.java 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120
  1. package com.futu.course.common.utils;
  2. /**
  3. * 常量
  4. *
  5. * @author Mark sunlightcs@gmail.com
  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. * @author chenshun
  34. * @email sunlightcs@gmail.com
  35. * @date 2016年11月15日 下午1:24:29
  36. */
  37. public enum MenuType {
  38. /**
  39. * 目录
  40. */
  41. CATALOG(0),
  42. /**
  43. * 菜单
  44. */
  45. MENU(1),
  46. /**
  47. * 按钮
  48. */
  49. BUTTON(2);
  50. private int value;
  51. MenuType(int value) {
  52. this.value = value;
  53. }
  54. public int getValue() {
  55. return value;
  56. }
  57. }
  58. /**
  59. * 定时任务状态
  60. *
  61. * @author chenshun
  62. * @email sunlightcs@gmail.com
  63. * @date 2016年12月3日 上午12:07:22
  64. */
  65. public enum ScheduleStatus {
  66. /**
  67. * 正常
  68. */
  69. NORMAL(0),
  70. /**
  71. * 暂停
  72. */
  73. PAUSE(1);
  74. private int value;
  75. ScheduleStatus(int value) {
  76. this.value = value;
  77. }
  78. public int getValue() {
  79. return value;
  80. }
  81. }
  82. /**
  83. * 云服务商
  84. */
  85. public enum CloudService {
  86. /**
  87. * 七牛云
  88. */
  89. QINIU(1),
  90. /**
  91. * 阿里云
  92. */
  93. ALIYUN(2),
  94. /**
  95. * 腾讯云
  96. */
  97. QCLOUD(3);
  98. private int value;
  99. CloudService(int value) {
  100. this.value = value;
  101. }
  102. public int getValue() {
  103. return value;
  104. }
  105. }
  106. }