CommonConstant.java 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190
  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 lombok.Getter;
  19. /**
  20. * 通用常量
  21. *
  22. * @author Chill
  23. */
  24. public interface CommonConstant {
  25. /**
  26. * sword 系统名
  27. */
  28. String SWORD_NAME = "sword";
  29. /**
  30. * saber 系统名
  31. */
  32. String SABER_NAME = "saber";
  33. /**
  34. * 顶级父节点id
  35. */
  36. Integer TOP_PARENT_ID = 0;
  37. /**
  38. * 顶级父节点名称
  39. */
  40. String TOP_PARENT_NAME = "顶级";
  41. /**
  42. * 默认密码
  43. */
  44. String DEFAULT_PASSWORD = "123456";
  45. String ORGPOSITION_ROOT = "000000";
  46. /**
  47. * 住户审核状态
  48. */
  49. @Getter
  50. enum UserAuditStatus {
  51. unUpload(-1, "未上传"),
  52. wait(0, "待审核"),
  53. pass(1, "审核通过"),
  54. fail(2, "审核不通过");
  55. private int value;
  56. private String txt;
  57. UserAuditStatus(int value, String txt) {
  58. this.value = value;
  59. this.txt = txt;
  60. }
  61. }
  62. /**
  63. * 会员审核状态
  64. */
  65. @Getter
  66. enum MemberAuditStatus {
  67. unAuth(0, "未认证"),
  68. wait(1, "待认证"),
  69. authed(2, "已认证");
  70. private int value;
  71. private String txt;
  72. MemberAuditStatus(int value, String txt) {
  73. this.value = value;
  74. this.txt = txt;
  75. }
  76. }
  77. /**
  78. * 人脸下发时用户的flag标签
  79. */
  80. @Getter
  81. enum UserFlag {
  82. SERVER_USER_FLAG("s_", "服务人员标识"),
  83. USER_FLAG("u_", "住户标识"),
  84. ADMIN_USER_FLAG("a_", "管理员标记"),
  85. DEVICE_MANAGE_FLAG("设备管理机账号", "d_"),
  86. TEST_USER_FLAG("t_", "测试账号表示"),
  87. ADMIN_USER_NUMBER_FLAG("101", "管理员数字标记"),
  88. USER_NUMBER_FLAG("102", "住户数字标记"),
  89. SERVER_USER_NUMBER_FLAG("103", "服务员数字标记"),
  90. GUEST_FLAG("FQ_", "访客标识"),
  91. ENTERPRISE_STAFF_FLAG("QYYG_", "企业员工标识"),
  92. ADMIN_FLAG("ADMIN_", "管理员标识");
  93. private String value;
  94. private String txt;
  95. UserFlag(String value, String txt) {
  96. this.value = value;
  97. this.txt = txt;
  98. }
  99. }
  100. @Getter
  101. enum UserType{
  102. HOUSE_USER("住户", 1),
  103. STAFF("企业员工",2),
  104. SERVER("服务人员",3),
  105. GUEST("访客",4),
  106. ADMIN("管理员",5);
  107. String name;
  108. Integer type;
  109. UserType(String name,Integer type){
  110. this.name = name;
  111. this.type = type;
  112. }
  113. }
  114. @Getter
  115. enum SystemConf {
  116. FILESERVER("file.server.host"),
  117. EXPIRE_NOTICE_DAYS("expire.notice.days");
  118. private String value;
  119. SystemConf(String value){
  120. this.value = value;
  121. }
  122. }
  123. @Getter
  124. enum TenantType {
  125. COMMUNITY("社区",0),
  126. PARK("园区",1);
  127. private Integer value;
  128. private String name;
  129. TenantType(String name,Integer value){
  130. this.name = name;
  131. this.value = value;
  132. }
  133. }
  134. @Getter
  135. enum PersonType {
  136. ENTERPRISESTAFF("员工",2),
  137. HOUSEUSER("住户",1);
  138. private Integer value;
  139. private String name;
  140. PersonType(String name,Integer value){
  141. this.name = name;
  142. this.value = value;
  143. }
  144. }
  145. @Getter
  146. enum THIRDPLATFORM {
  147. AEP("aep平台","aep"),
  148. PERCEPTION("感知平台","scepctwing");
  149. private String value;
  150. private String name;
  151. THIRDPLATFORM(String name,String value){
  152. this.name = name;
  153. this.value = value;
  154. }
  155. }
  156. }