🔥码云GVP开源项目 12k star Uniapp+ElementUI 功能强大 支持多语言、二开方便! 广告
``` /** * @author 张跃帅 * @Description: 预览文件类型-枚举 * @date 2020/08/12 */ @Getter public enum PreviewFileEnum { /** * doc */ DOC("doc", "doc"), /** * docx */ DOCX("docx", "docx"), /** * xls */ XLS("xls", "xls"), /** * xlsx */ XLSX("xlsx", "xlsx"), /** * ppt */ PPT("ppt", "ppt"), /** * pptx */ PPTX("pptx", "pptx"), /** * pdf */ PDF("pdf", "pdf"); private final String code; private final String name; PreviewFileEnum(String code, String name) { this.code = code; this.name = name; } }