TASK:模块化;

This commit is contained in:
shahaibo
2025-04-21 18:51:43 +08:00
parent fc2795b83e
commit 0a4d6ff13b
15 changed files with 630 additions and 50 deletions

View File

@@ -0,0 +1,32 @@
package com.ai.da.model.enums;
import com.fasterxml.jackson.annotation.JsonValue;
public enum BuildType implements IEnumDisplay {
DESIGN("design"),
TO_PRODUCT_IMAGE("toProductImage"),
RELIGHT("relight")
;
private String value;
BuildType(String value) {
this.value = value;
}
@Override
@JsonValue
public String getValue() {
return this.value;
}
public static BuildType getBuildType(String value) {
for (BuildType type : values()) {
if (type.value.equalsIgnoreCase(value)) {
return type;
}
}
throw new IllegalArgumentException("No matching constant for [" + value + "]");
}
}