TASK:designSingle 添加多件衣服并允许添加相同类型的服装

This commit is contained in:
2023-12-13 10:45:52 +08:00
parent 4e3746cfba
commit 51548b52ba
12 changed files with 77 additions and 32 deletions

View File

@@ -36,4 +36,6 @@ public class DesignPythonBasic {
private Map<String, List<Integer>> body_point_test = Maps.newHashMap();
private Boolean layer_order = Boolean.TRUE;
}

View File

@@ -69,6 +69,10 @@ public class DesignPythonItem {
* 图层缩放大小
*/
private Float resize_scale;
/**
* 图层优先级
*/
private Integer priority;
public static List<String> OUTWEAR_DRESS_BLOUSE = Arrays.asList(CollectionLevel2TypeEnum.OUTWEAR.getRealName(),
@@ -106,7 +110,7 @@ public class DesignPythonItem {
this.image_id = image_id;
}
public DesignPythonItem(String type, String path, String color, DesignPythonItemPrint print, Long businessId, Long image_id, List<Long> offset, Float resize_scale) {
public DesignPythonItem(String type, String path, String color, DesignPythonItemPrint print, Long businessId, Long image_id, List<Long> offset, Float resize_scale,Integer priority) {
this.type = type;
this.path = path;
this.color = color;
@@ -116,6 +120,7 @@ public class DesignPythonItem {
this.image_id = image_id;
this.offset = offset;
this.resize_scale = resize_scale;
this.priority = priority;
}
public DesignPythonItem(String type, String path, String color, DesignPythonItemPrint print, String icon, Long businessId, Long image_id) {