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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
| package com.whyc.constant;
|
| /**用户操作类型*/
| public enum UserOperation {
| /**操作类型*/
| TYPE_LOGIN(1,"登录系统"),
| TYPE_LOGOUT(2,"登出系统"),
| TYPE_ADD(3,"新增"),
| TYPE_UPDATE(4,"修改"),
| TYPE_DELETE(5,"删除"),
|
| TYPE_UNRECOGNIZED(-1,"无法识别的操作类型"),
|
| /**操作分类 TODO,不确定会使用*/
| SORT_LOGIN(1000,"登录"),
| SORT_COMMON(1001,"常规操作");
|
|
| private Integer type;
| private String typeName;
|
| UserOperation(Integer type, String typeName) {
| this.type = type;
| this.typeName = typeName;
| }
|
| public Integer getType() {
| return type;
| }
|
| public void setType(Integer type) {
| this.type = type;
| }
|
| public String getTypeName() {
| return typeName;
| }
|
| public void setTypeName(String typeName) {
| this.typeName = typeName;
| }
| }
|
|