Constants.java 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. package com.ruoyi.common.constant;
  2. /**
  3. * 通用常量信息
  4. *
  5. * @author ruoyi
  6. */
  7. public class Constants
  8. {
  9. /**
  10. * UTF-8 字符集
  11. */
  12. public static final String UTF8 = "UTF-8";
  13. /**
  14. * 通用成功标识
  15. */
  16. public static final String SUCCESS = "0";
  17. /**
  18. * 通用失败标识
  19. */
  20. public static final String FAIL = "1";
  21. /**
  22. * 登录成功
  23. */
  24. public static final String LOGIN_SUCCESS = "Success";
  25. /**
  26. * 注销
  27. */
  28. public static final String LOGOUT = "Logout";
  29. /**
  30. * 登录失败
  31. */
  32. public static final String LOGIN_FAIL = "Error";
  33. /**
  34. * 自动去除表前缀
  35. */
  36. public static final String AUTO_REOMVE_PRE = "true";
  37. /**
  38. * 当前记录起始索引
  39. */
  40. public static final String PAGE_NUM = "pageNum";
  41. /**
  42. * 每页显示记录数
  43. */
  44. public static final String PAGE_SIZE = "pageSize";
  45. /**
  46. * 排序列
  47. */
  48. public static final String ORDER_BY_COLUMN = "orderByColumn";
  49. /**
  50. * 排序的方向 "desc" 或者 "asc".
  51. */
  52. public static final String IS_ASC = "isAsc";
  53. /**
  54. * 资源映射路径 前缀
  55. */
  56. public static final String RESOURCE_PREFIX = "/profile";
  57. }