This commit is contained in:
张良(004796)
2024-05-11 12:25:08 +08:00
parent 978df0ea95
commit f6ab2c535a
13 changed files with 374 additions and 5 deletions

View File

@@ -0,0 +1,21 @@
package com.ruoyi.oss.enums;
import cn.hutool.http.ContentType;
import lombok.Getter;
@Getter
public enum FileTypeEnums {
JPG("jpg", ContentType.OCTET_STREAM.getValue()),
MP4("mp4", ContentType.OCTET_STREAM.getValue());
private final String suffix;
private final String contentType;
FileTypeEnums(String suffix, String contentType) {
this.suffix = suffix;
this.contentType = contentType;
}
public String getSuffixV2(){
return "."+this.getSuffix();
}
}