design Single接口第一版
This commit is contained in:
@@ -86,12 +86,13 @@ public class DesignPythonItem {
|
||||
this.image_id = image_id;
|
||||
}
|
||||
|
||||
public DesignPythonItem(String type, String path, String color, DesignPythonItemPrint print, String icon, Long image_id) {
|
||||
public DesignPythonItem(String type, String path, String color, DesignPythonItemPrint print, String icon, Long businessId, Long image_id) {
|
||||
this.type = type;
|
||||
this.path = path;
|
||||
this.color = color;
|
||||
this.print = print;
|
||||
this.icon = icon;
|
||||
this.businessId = businessId;
|
||||
this.image_id = image_id;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -12,9 +12,9 @@ public class DesignPythonItemPrint {
|
||||
* print 绝对路径
|
||||
*/
|
||||
@ApiModelProperty("图片绝对路径")
|
||||
private String singlePath;
|
||||
private String path;
|
||||
|
||||
private List<String> path;
|
||||
private List<String> print_path_list;
|
||||
|
||||
@ApiModelProperty("上传时候对应的类型,一级类型 Printboard ")
|
||||
private String level1Type;
|
||||
@@ -23,7 +23,7 @@ public class DesignPythonItemPrint {
|
||||
* print_scale
|
||||
*/
|
||||
@ApiModelProperty("print_scale")
|
||||
private Float print_scale;
|
||||
private Float scale;
|
||||
|
||||
/**
|
||||
* 是否打点
|
||||
@@ -36,10 +36,10 @@ public class DesignPythonItemPrint {
|
||||
private List<List<Float>> location;
|
||||
|
||||
@ApiModelProperty("print的缩放比例 传 [0.2, 0.2]")
|
||||
private List<Float> scale;
|
||||
private List<Float> print_scale_list;
|
||||
|
||||
@ApiModelProperty("print的旋转角度 传 [0.2, 0.2]")
|
||||
private List<Float> angle;
|
||||
private List<Float> print_angle_list;
|
||||
|
||||
@JSONField(name="IfSingle")
|
||||
public Boolean getIfSingle() {
|
||||
@@ -48,16 +48,16 @@ public class DesignPythonItemPrint {
|
||||
|
||||
// todo
|
||||
public DesignPythonItemPrint(String singlePath, String level1Type, Float scale, Boolean ifSingle) {
|
||||
this.singlePath = singlePath;
|
||||
this.path = singlePath;
|
||||
this.level1Type = level1Type;
|
||||
this.print_scale = scale;
|
||||
this.scale = scale;
|
||||
IfSingle = ifSingle;
|
||||
}
|
||||
|
||||
public DesignPythonItemPrint() {
|
||||
}
|
||||
|
||||
public DesignPythonItemPrint(String singlePath) {
|
||||
this.singlePath = singlePath;
|
||||
public DesignPythonItemPrint(String path) {
|
||||
this.path = path;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user