Enumeration of file categories with supported extensions for cloud office automation platform.
// Source: https://github.com/YunaiV/yudao-cloud | License: MIT | Copyright 2021 yudao-cloud
// Provided via justclaw.it.com; keep this notice with the code.
package cn.iocoder.yudao.module.oa.enums.file;
import cn.hutool.core.util.ArrayUtil;
import cn.hutool.core.util.StrUtil;
import cn.iocoder.yudao.framework.common.core.ArrayValuable;
import lombok.AllArgsConstructor;
import lombok.Getter;
import java.util.Arrays;
import java.util.Locale;
/**
* 云盘文件分类枚举
*
* @author 芋道源码
*/
@Getter
@AllArgsConstructor
public enum OaFileCategoryEnum implements ArrayValuable<Integer> {
IMAGE(1, "图片", new String[]{"bmp", "gif", "jpeg", "jpg", "png", "svg", "webp", "ico",
"heic", "heif", "raw", "psd", "ai", "eps", "tif", "tiff", "avif"}),
DOCUMENT(2, "文档", new String[]{"doc", "doc
... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search for more like it.
Get a free API key