Constants.java 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  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 String AUTO_REOMVE_PRE = "true";
  37. /**
  38. * 当前记录起始索引
  39. */
  40. public static String PAGENUM = "pageNum";
  41. /**
  42. * 每页显示记录数
  43. */
  44. public static String PAGESIZE = "pageSize";
  45. /**
  46. * 排序列
  47. */
  48. public static String ORDERBYCOLUMN = "orderByColumn";
  49. /**
  50. * 排序的方向 "desc" 或者 "asc".
  51. */
  52. public static String ISASC = "isAsc";
  53. }