提交 | 用户 | 时间 | ||
0cceb6 | 1 | package com.jcdm.common.enums; |
Y | 2 | |
3 | /** | |
4 | * 用户状态 | |
5 | * | |
6 | * @author jc | |
7 | */ | |
8 | public enum UserStatus | |
9 | { | |
10 | OK("0", "正常"), DISABLE("1", "停用"), DELETED("2", "删除"); | |
11 | ||
12 | private final String code; | |
13 | private final String info; | |
14 | ||
15 | UserStatus(String code, String info) | |
16 | { | |
17 | this.code = code; | |
18 | this.info = info; | |
19 | } | |
20 | ||
21 | public String getCode() | |
22 | { | |
23 | return code; | |
24 | } | |
25 | ||
26 | public String getInfo() | |
27 | { | |
28 | return info; | |
29 | } | |
30 | } |