소스 검색

格式化代码

chenshudong 3 달 전
부모
커밋
dae7484964
1개의 변경된 파일25개의 추가작업 그리고 12개의 파일을 삭제
  1. 25 12
      airport-common/src/main/java/com/sundot/airport/common/enums/portrait/UserType.java

+ 25 - 12
airport-common/src/main/java/com/sundot/airport/common/enums/portrait/UserType.java

@@ -5,39 +5,52 @@ package com.sundot.airport.common.enums.portrait;
5 5
  * 定义了系统中的用户类型,包括个人和各种组织层级
6 6
  */
7 7
 public enum UserType {
8
-    /** 个人用户 */
8
+    /**
9
+     * 个人用户
10
+     */
9 11
     PERSONAL("个人"),
10
-    
11
-    /** 班组级别 */
12
+
13
+    /**
14
+     * 班组级别
15
+     */
12 16
     TEAM("班组"),
13
-    
14
-    /** 科级单位 */
17
+
18
+    /**
19
+     * 科级单位
20
+     */
15 21
     DEPARTMENT("科级"),
16
-    
17
-    /** 站级单位 */
22
+
23
+    /**
24
+     * 站级单位
25
+     */
18 26
     STATION("站级");
19
-    
20
-    /** 类型描述 */
27
+
28
+    /**
29
+     * 类型描述
30
+     */
21 31
     private final String description;
22
-    
32
+
23 33
     /**
24 34
      * 构造函数
35
+     *
25 36
      * @param description 类型描述
26 37
      */
27 38
     UserType(String description) {
28 39
         this.description = description;
29 40
     }
30
-    
41
+
31 42
     /**
32 43
      * 获取类型描述
44
+     *
33 45
      * @return 类型描述
34 46
      */
35 47
     public String getDescription() {
36 48
         return description;
37 49
     }
38
-    
50
+
39 51
     /**
40 52
      * 根据字符串获取枚举值
53
+     *
41 54
      * @param userType 用户类型字符串
42 55
      * @return 对应的枚举值
43 56
      */