mask替换相关接口--未完善版,暂存
This commit is contained in:
@@ -2662,7 +2662,8 @@ public class PythonService {
|
||||
designSingleItem.getScale(),
|
||||
designSingleItem.getPriority(),
|
||||
minioPath,
|
||||
gradientString));
|
||||
gradientString,
|
||||
designSingleItem.getMaskUrl()));
|
||||
});
|
||||
|
||||
|
||||
@@ -2684,7 +2685,7 @@ public class PythonService {
|
||||
DesignPythonItemPrint printOverall = new DesignPythonItemPrint();
|
||||
printToPython.setSingle(printSingle);
|
||||
printToPython.setOverall(printOverall);
|
||||
if (printObject.isEmpty()){
|
||||
if (Objects.isNull(printObject) || printObject.isEmpty()){
|
||||
return printToPython;
|
||||
}
|
||||
|
||||
|
||||
@@ -82,6 +82,10 @@ public class DesignPythonItem {
|
||||
* 图层优先级
|
||||
*/
|
||||
private Integer priority;
|
||||
/**
|
||||
* 标注过的mask
|
||||
*/
|
||||
private String seg_mask_url;
|
||||
|
||||
public static List<String> OUTWEAR_DRESS_BLOUSE = Arrays.asList(CollectionLevel2TypeEnum.OUTWEAR.getRealName(),
|
||||
CollectionLevel2TypeEnum.DRESS.getRealName(), CollectionLevel2TypeEnum.BLOUSE.getRealName());
|
||||
@@ -134,6 +138,24 @@ public class DesignPythonItem {
|
||||
this.gradientString = gradientString;
|
||||
}
|
||||
|
||||
public DesignPythonItem(String type, String path, String color, PrintToPython print, Long businessId,
|
||||
Long image_id, List<Long> offset, Float[] resize_scale, Integer priority, String gradient,
|
||||
String gradientString, String seg_mask_url) {
|
||||
this.type = type;
|
||||
this.path = path;
|
||||
this.color = color;
|
||||
this.print = print;
|
||||
// this.icon = icon;
|
||||
this.businessId = businessId;
|
||||
this.image_id = image_id;
|
||||
this.offset = offset;
|
||||
this.resize_scale = resize_scale;
|
||||
this.priority = priority;
|
||||
this.gradient = gradient;
|
||||
this.gradientString = gradientString;
|
||||
this.seg_mask_url = seg_mask_url;
|
||||
}
|
||||
|
||||
public DesignPythonItem(String type, String path, String color, PrintToPython print, String icon, Long businessId, Long image_id) {
|
||||
this.type = type;
|
||||
this.path = path;
|
||||
|
||||
Reference in New Issue
Block a user