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;
|
}
|
}
|