柯桥增值式服务
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.

109 lines
2.2KB

  1. package com.ningdatech.kqapi.common.constant;
  2. import com.ningdatech.kqapi.common.model.ApiResponse;
  3. import java.math.BigDecimal;
  4. /**
  5. * <p>
  6. * 业务常量
  7. * </p>
  8. *
  9. * @author WendyYang
  10. * @since 13:42 2022/12/1
  11. */
  12. public interface BizConst {
  13. /**
  14. * SQL查询一条
  15. */
  16. String LIMIT_1 = "limit 1";
  17. String COOKIE_KEY = "ND_PROJECT_MANAGEMENT_JSESSION";
  18. /**
  19. * 一小时秒数
  20. **/
  21. BigDecimal SECONDS_BY_HOUR = new BigDecimal(60 * 60);
  22. /**
  23. * 十分钟的毫秒数
  24. */
  25. long MILLS_10_MIN = 1000L * 60 * 10;
  26. /**
  27. * 中国行政区划编码
  28. */
  29. long ROOT_REGION_CODE = 100000L;
  30. /**
  31. * 一级行政区划数量
  32. */
  33. int NUM_PROVINCE = 34;
  34. /**
  35. * 默认的父id
  36. */
  37. long PARENT_ID = 0L;
  38. /**
  39. * 默认树层级
  40. */
  41. int TREE_GRADE = 0;
  42. /**
  43. * 默认的排序
  44. */
  45. int SORT_VALUE = 0;
  46. /**
  47. * 浙江省的region_id
  48. */
  49. long ZJ_REGION_CODE = 330000L;
  50. String NINE_AREA_CODE_LAST = "000";
  51. /**
  52. * 省/直辖市 level
  53. */
  54. int GOV_L1 = 1;
  55. /**
  56. * 市 level
  57. */
  58. int GOV_L2 = 2;
  59. /**
  60. * 区/县 level
  61. */
  62. int GOV_L3 = 3;
  63. /**
  64. * 密码正则:长度8-20位且至少包含大写字母、小写字母、数字或特殊符号中的任意三种
  65. */
  66. String REGEX_PASS = "^(?![a-zA-Z]+$)(?![A-Z0-9]+$)(?![A-Z\\W_]+$)(?![a-z0-9]+$)(?![a-z\\W_]+$)(?![0-9\\W_]+$)[a-zA-Z0-9\\W_]{8,20}$";
  67. ApiResponse<Void> UNAUTHENTICATED = ApiResponse.of(401, "用户未登录", null);
  68. int MAX_EXPORT_COUNT = 5000;
  69. String RESPONSE_KEY_DATA = "data";
  70. String RESPONSE_KEY_ID = "id";
  71. String RESPONSE_KEY_DING_CODE = "dingCode";
  72. String RESPONSE_KEY_MATTER_NAME = "matterName";
  73. String RESPONSE_KEY_ORG_NAME = "orgName";
  74. String RESPONSE_KEY_USER_STATE = "userState";
  75. String RESPONSE_KEY_AREA_NAME = "areaName";
  76. String ORG_NAME = "organizationName";
  77. String ORG_CODE = "organizationCode";
  78. String DEV = "dev";
  79. String PRE = "pre";
  80. String PROD = "prod";
  81. String SAVE_SUCCESS = "保存成功";
  82. String OP_SUCCESS = "操作成功";
  83. String OP_FAIL = "操作失败";
  84. String SAVE_FAIL = "保存失败";
  85. }