接口修改: 将designSingle与editLayer接口合并

This commit is contained in:
xupei
2023-10-06 15:56:32 +08:00
parent e8cbe6f244
commit 6eb4f997c3
5 changed files with 34 additions and 5 deletions

View File

@@ -1348,7 +1348,9 @@ public class PythonService {
"none",
// todo businessId 待确认
designSingleItem.getId(),
pythonTAllInfoService.getImageIdByPath(designSingleItem.getPath())));
pythonTAllInfoService.getImageIdByPath(designSingleItem.getPath()),
designSingleItem.getOffset(),
designSingleItem.getScale()));
});

View File

@@ -61,6 +61,14 @@ public class DesignPythonItem {
* url在t_sys_file中的id
*/
private Long image_id;
/**
* 图层偏移量(位置)
*/
private List<Long> offset;
/**
* 图层缩放大小
*/
private Float resize_scale;
public static List<String> OUTWEAR_DRESS_BLOUSE = Arrays.asList(CollectionLevel2TypeEnum.OUTWEAR.getRealName(),
@@ -86,6 +94,18 @@ public class DesignPythonItem {
this.image_id = image_id;
}
public DesignPythonItem(String type, String path, String color, DesignPythonItemPrint print, String icon, Long businessId, Long image_id, List<Long> offset, Float resize_scale) {
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;
}
public DesignPythonItem(String type, String path, String color, DesignPythonItemPrint print, String icon, Long businessId, Long image_id) {
this.type = type;
this.path = path;