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
| package com.monkeylessey.enums;
|
|
| import com.baomidou.mybatisplus.annotation.EnumValue;
| import com.fasterxml.jackson.annotation.JsonValue;
| import lombok.Getter;
|
| import java.util.Arrays;
| import java.util.List;
|
| /**
| * oss文件分类目录,文件类型白名单
| * @author 29443
| *
| */
| @Getter
| public enum OrgTypeEnum {
|
| ORG("0", "组织"),
| ZIP("1", "部门");
|
| /**
| * 类型
| */
| @EnumValue
| @JsonValue
| private final String type;
|
| /**
| * 描述
| */
| private final String desc;
|
| OrgTypeEnum(String type, String desc) {
| this.type = type;
| this.desc = desc;
| }
|
| }
|
|