修改 design single功能

This commit is contained in:
xupei
2023-09-14 12:58:49 +08:00
parent 165449084b
commit cf771a5b77
31 changed files with 687 additions and 102 deletions

File diff suppressed because one or more lines are too long

View File

@@ -53,6 +53,11 @@ public class DesignPythonItem {
*/
private String body_mask_path;
/**
* url在t_sys_file中的id
*/
private Long image_id;
public static List<String> OUTWEAR_DRESS_BLOUSE = Arrays.asList(CollectionLevel2TypeEnum.OUTWEAR.getRealName(),
CollectionLevel2TypeEnum.DRESS.getRealName(),CollectionLevel2TypeEnum.BLOUSE.getRealName());
@@ -67,4 +72,22 @@ public class DesignPythonItem {
public static List<String> SYS_HAIRSTYLE_SHOES = Arrays.asList(
SysFileLevel2TypeEnum.HAIRSTYLE.getRealName(), SysFileLevel2TypeEnum.SHOES.getRealName(),
SysFileLevel2TypeEnum.EARRINGS.getRealName());
public DesignPythonItem() {
}
public DesignPythonItem(String type, String bodyPath, Long image_id) {
this.type = type;
this.body_path = bodyPath;
this.image_id = image_id;
}
public DesignPythonItem(String type, String path, String color, DesignPythonItemPrint print, String icon, Long image_id) {
this.type = type;
this.path = path;
this.color = color;
this.print = print;
this.icon = icon;
this.image_id = image_id;
}
}

View File

@@ -12,7 +12,9 @@ public class DesignPythonItemPrint {
* print 绝对路径
*/
@ApiModelProperty("图片绝对路径")
private String path;
private String singlePath;
private List<String> path;
@ApiModelProperty("上传时候对应的类型,一级类型 Printboard ")
private String level1Type;
@@ -21,35 +23,41 @@ public class DesignPythonItemPrint {
* print_scale
*/
@ApiModelProperty("print_scale")
private Float scale;
private Float print_scale;
/**
* 是否打点
*/
@ApiModelProperty("是否打点 是传true 否则false")
private Boolean IfSingle;
@ApiModelProperty("打点的位置 传 [[0.2, 0.2]]")
@ApiModelProperty("print的位置 传 [[0.2, 0.2]]")
private List<List<Float>> location;
@ApiModelProperty("print的缩放比例 传 [0.2, 0.2]")
private List<Float> scale;
@ApiModelProperty("print的旋转角度 传 [0.2, 0.2]")
private List<Float> angle;
@JSONField(name="IfSingle")
public Boolean getIfSingle() {
return IfSingle;
}
public DesignPythonItemPrint(String path, String level1Type, Float scale, Boolean ifSingle) {
this.path = path;
// todo
public DesignPythonItemPrint(String singlePath, String level1Type, Float scale, Boolean ifSingle) {
this.singlePath = singlePath;
this.level1Type = level1Type;
this.scale = scale;
this.print_scale = scale;
IfSingle = ifSingle;
}
public DesignPythonItemPrint() {
}
public DesignPythonItemPrint(String path) {
this.path = path;
public DesignPythonItemPrint(String singlePath) {
this.singlePath = singlePath;
}
}