| 1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
 | | package com.zt.common.constant; |  |   |  | import com.zt.common.annotation.Dictionary; |  |   |  | @Dictionary(type = "bool", name = "是或否") |  | public enum Bool implements IDictionary { |  |   |  |     YES(true, "是"), NO(false, "否"); |  |   |  |     private Boolean code; |  |     private String name; |  |   |  |     Bool(Boolean code, String name) { |  |         this.code = code; |  |         this.name = name; |  |     } |  |   |  |     @Override |  |     public Boolean getValue() { |  |         return code; |  |     } |  |   |  |     @Override |  |     public String getName() { |  |         return name; |  |     } |  | } | 
 |