|
@@ -0,0 +1,39 @@
|
|
|
+package com.fdkankan.common.constant;
|
|
|
+
|
|
|
+/**
|
|
|
+ * 文件业务类型
|
|
|
+ */
|
|
|
+public enum FileBizType {
|
|
|
+
|
|
|
+ FLOOR_LOGO("floorLogo", "地板logo"),
|
|
|
+ MUSIC("music", "背景音乐");
|
|
|
+
|
|
|
+ private String code;
|
|
|
+ private String message;
|
|
|
+
|
|
|
+ private FileBizType(String code, String message) {
|
|
|
+ this.code = code;
|
|
|
+ this.message = message;
|
|
|
+ }
|
|
|
+
|
|
|
+ public String code() {
|
|
|
+ return code;
|
|
|
+ }
|
|
|
+
|
|
|
+ public String message() {
|
|
|
+ return message;
|
|
|
+ }
|
|
|
+
|
|
|
+ public static FileBizType get(String code){
|
|
|
+ FileBizType[] values = FileBizType.values();
|
|
|
+ String enumValue = null;
|
|
|
+ for(FileBizType eachValue : values){
|
|
|
+ enumValue = eachValue.code();
|
|
|
+ if(enumValue.equals(code)){
|
|
|
+ return eachValue;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ return null;
|
|
|
+ }
|
|
|
+
|
|
|
+}
|