TASK:AiDA模块化
This commit is contained in:
34
src/main/java/com/ai/da/model/enums/DesignProcess.java
Normal file
34
src/main/java/com/ai/da/model/enums/DesignProcess.java
Normal file
@@ -0,0 +1,34 @@
|
||||
package com.ai.da.model.enums;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonValue;
|
||||
|
||||
public enum DesignProcess implements IEnumDisplay {
|
||||
|
||||
SERIES_DESIGN("Series design"),
|
||||
SINGLE_DESIGN("Single design"),
|
||||
FINISHED_PRODUCT("Finished product"),
|
||||
PRINT_DESIGN("Print design"),
|
||||
SKETCH_COLLAGE_PROCESS("Sketch Collage process"),
|
||||
THREE_D_PLATE_MAKING("3D plate making");
|
||||
|
||||
private final String value;
|
||||
|
||||
DesignProcess(String value) {
|
||||
this.value = value;
|
||||
}
|
||||
|
||||
@Override
|
||||
@JsonValue
|
||||
public String getValue() {
|
||||
return this.value;
|
||||
}
|
||||
|
||||
public static DesignProcess getProcess(String value) {
|
||||
for (DesignProcess process : values()) {
|
||||
if (process.value.equalsIgnoreCase(value)) {
|
||||
return process;
|
||||
}
|
||||
}
|
||||
throw new IllegalArgumentException("No matching constant for [" + value + "]");
|
||||
}
|
||||
}
|
||||
39
src/main/java/com/ai/da/model/enums/Module.java
Normal file
39
src/main/java/com/ai/da/model/enums/Module.java
Normal file
@@ -0,0 +1,39 @@
|
||||
package com.ai.da.model.enums;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonValue;
|
||||
|
||||
public enum Module implements IEnumDisplay {
|
||||
moodBoard("MoodBoard"),
|
||||
printBoard("PrintBoard"),
|
||||
colorBoard("ColorBoard"),
|
||||
sketchBoard("SketchBoard"),
|
||||
mannequin("Mannequin"),
|
||||
design("Design"),
|
||||
toProduct("To Product"),
|
||||
relight("Relight"),
|
||||
poseTransfer("Pose Transfer"),
|
||||
canvas("Canvas"),
|
||||
patternMaking3D("3D Pattern Making"),
|
||||
deReconstruction("De/Reconstruction");
|
||||
|
||||
private final String value;
|
||||
|
||||
Module(String value) {
|
||||
this.value = value;
|
||||
}
|
||||
|
||||
@Override
|
||||
@JsonValue
|
||||
public String getValue() {
|
||||
return this.value;
|
||||
}
|
||||
|
||||
public static Module getName(String value) {
|
||||
for (Module module : values()) {
|
||||
if (module.value.equalsIgnoreCase(value)) {
|
||||
return module;
|
||||
}
|
||||
}
|
||||
throw new IllegalArgumentException("No matching constant for [" + value + "]");
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user