single design添加渐变颜色
This commit is contained in:
@@ -38,4 +38,10 @@ public class DesignSingleItemDTO {
|
|||||||
@NotNull(message = "priority.cannot.be.empty")
|
@NotNull(message = "priority.cannot.be.empty")
|
||||||
@ApiModelProperty("图层优先级")
|
@ApiModelProperty("图层优先级")
|
||||||
private Integer priority;
|
private Integer priority;
|
||||||
|
|
||||||
|
@ApiModelProperty("渐变 起始/目标 颜色")
|
||||||
|
private List<List<Integer>> gradient;
|
||||||
|
|
||||||
|
@ApiModelProperty("渐变角度")
|
||||||
|
private Float gradient_angle;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2588,7 +2588,9 @@ public class PythonService {
|
|||||||
pythonTAllInfoService.getImageIdByPath(designSingleItem.getPath()),
|
pythonTAllInfoService.getImageIdByPath(designSingleItem.getPath()),
|
||||||
designSingleItem.getOffset(),
|
designSingleItem.getOffset(),
|
||||||
designSingleItem.getScale(),
|
designSingleItem.getScale(),
|
||||||
designSingleItem.getPriority()));
|
designSingleItem.getPriority(),
|
||||||
|
designSingleItem.getGradient(),
|
||||||
|
designSingleItem.getGradient_angle()));
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -74,6 +74,9 @@ public class DesignPythonItem {
|
|||||||
*/
|
*/
|
||||||
private Integer priority;
|
private Integer priority;
|
||||||
|
|
||||||
|
private List<List<Integer>> gradient;
|
||||||
|
|
||||||
|
private Float gradient_angle;
|
||||||
|
|
||||||
public static List<String> OUTWEAR_DRESS_BLOUSE = Arrays.asList(CollectionLevel2TypeEnum.OUTWEAR.getRealName(),
|
public static List<String> OUTWEAR_DRESS_BLOUSE = Arrays.asList(CollectionLevel2TypeEnum.OUTWEAR.getRealName(),
|
||||||
CollectionLevel2TypeEnum.DRESS.getRealName(), CollectionLevel2TypeEnum.BLOUSE.getRealName());
|
CollectionLevel2TypeEnum.DRESS.getRealName(), CollectionLevel2TypeEnum.BLOUSE.getRealName());
|
||||||
@@ -123,6 +126,21 @@ public class DesignPythonItem {
|
|||||||
this.priority = priority;
|
this.priority = priority;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public DesignPythonItem(String type, String path, String color, DesignPythonItemPrint print, Long businessId, Long image_id, List<Long> offset, Float resize_scale,Integer priority, List<List<Integer>> gradient, Float gradient_angle) {
|
||||||
|
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.gradient_angle = gradient_angle;
|
||||||
|
}
|
||||||
|
|
||||||
public DesignPythonItem(String type, String path, String color, DesignPythonItemPrint print, String icon, Long businessId, Long image_id) {
|
public DesignPythonItem(String type, String path, String color, DesignPythonItemPrint print, String icon, Long businessId, Long image_id) {
|
||||||
this.type = type;
|
this.type = type;
|
||||||
this.path = path;
|
this.path = path;
|
||||||
|
|||||||
Reference in New Issue
Block a user