xiangpei
2025-04-18 23da057f35cea1ee061adc23ccb9b7511635133b
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
package com.monkeylessey.enums.general;
 
import com.baomidou.mybatisplus.annotation.EnumValue;
import com.fasterxml.jackson.annotation.JsonValue;
 
/**
 * 文件上传类型
 * @author xp
 * @data 2023/7/15
 */
public enum FileUploadTypeEnum {
 
    COMMON("common", "普通上传"),
 
    APPEND("append", "追加上传"),
 
    POINT("point", "断点续传"),
 
    PARTITION("partition", "分片上传");
 
    /**
     * 类型
     */
    @EnumValue
    @JsonValue
    private final String type;
 
    /**
     * 描述
     */
    private final String desc;
 
    FileUploadTypeEnum(String type, String desc) {
        this.type = type;
        this.desc = desc;
    }
 
    public String getType() {
        return type;
    }
}