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
43
44
|
| package com.gkhy.exam.institutionalaccess.enums;
|
|
| public enum FaceType {
| //资源类型(0视频,1音频)
| SIGN((byte)10,"签到"),
| AUTH((byte)20,"认证"),
|
| ;
|
| private Byte type;
| private String desc;
|
| FaceType(Byte type, String desc) {
| this.type = type;
| this.desc = desc;
| }
|
| public Byte getType() {
| return type;
| }
|
| public void setType(Byte type) {
| this.type = type;
| }
|
| public String getDesc() {
| return desc;
| }
|
| public void setDesc(String desc) {
| this.desc = desc;
| }
|
| public static FaceType get(Byte status) {
| for (FaceType faceType : FaceType.values()) {
| if (faceType.getType() == status) {
| return faceType;
| }
| }
| return null;
| }
| }
|
|