CommonConstant.java 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. /*
  2. * Copyright (c) 2018-2028, Chill Zhuang All rights reserved.
  3. *
  4. * Redistribution and use in source and binary forms, with or without
  5. * modification, are permitted provided that the following conditions are met:
  6. *
  7. * Redistributions of source code must retain the above copyright notice,
  8. * this list of conditions and the following disclaimer.
  9. * Redistributions in binary form must reproduce the above copyright
  10. * notice, this list of conditions and the following disclaimer in the
  11. * documentation and/or other materials provided with the distribution.
  12. * Neither the name of the dreamlu.net developer nor the names of its
  13. * contributors may be used to endorse or promote products derived from
  14. * this software without specific prior written permission.
  15. * Author: Chill 庄骞 (smallchill@163.com)
  16. */
  17. package org.springblade.common.constant;
  18. import org.springblade.core.launch.constant.AppConstant;
  19. /**
  20. * 通用常量
  21. *
  22. * @author Chill
  23. */
  24. public interface CommonConstant {
  25. /**
  26. * app name
  27. */
  28. String APPLICATION_NAME = AppConstant.APPLICATION_NAME_PREFIX + "api";
  29. /**
  30. * sword 系统名
  31. */
  32. String SWORD_NAME = "sword";
  33. /**
  34. * saber 系统名
  35. */
  36. String SABER_NAME = "saber";
  37. /**
  38. * 顶级父节点id
  39. */
  40. Long TOP_PARENT_ID = 0L;
  41. /**
  42. * 顶级父节点名称
  43. */
  44. String TOP_PARENT_NAME = "顶级";
  45. /**
  46. * 未封存状态值
  47. */
  48. Integer NOT_SEALED_ID = 0;
  49. /**
  50. * 默认密码
  51. */
  52. String DEFAULT_PASSWORD = "123456";
  53. /**
  54. * 默认密码参数值
  55. */
  56. String DEFAULT_PARAM_PASSWORD = "account.initPassword";
  57. /**
  58. * 默认排序字段
  59. */
  60. String SORT_FIELD = "sort";
  61. /**
  62. * 数据权限类型
  63. */
  64. Integer DATA_SCOPE_CATEGORY = 1;
  65. /**
  66. * 接口权限类型
  67. */
  68. Integer API_SCOPE_CATEGORY = 2;
  69. }