TASK:AiDA模块化

This commit is contained in:
shahaibo
2025-03-16 13:09:50 +08:00
parent 1637db2fe3
commit 8fa76c6732
55 changed files with 3236 additions and 132 deletions

View 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 + "]");
}
}

View 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 + "]");
}
}