修改 design single功能
This commit is contained in:
File diff suppressed because one or more lines are too long
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user