designSingle 、getDetail 添加返回印花详细
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
package com.ai.da.model.vo;
|
||||
|
||||
import com.ai.da.python.vo.DesignPythonItemPrint;
|
||||
import com.ai.da.model.dto.DesignSinglePrintDTO;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
@@ -30,8 +30,11 @@ public class DesignItemClothesDetailVO {
|
||||
// private String color;
|
||||
private PantoneVO color;
|
||||
|
||||
@ApiModelProperty("对应的print图片对象")
|
||||
private DesignPythonItemPrint printObject;
|
||||
// @ApiModelProperty("对应的print图片对象")
|
||||
// private DesignPythonItemPrint printObject;
|
||||
|
||||
@ApiModelProperty("print详细")
|
||||
private DesignSinglePrintDTO printObject;
|
||||
|
||||
@ApiModelProperty("对应图层信息")
|
||||
private List<DesignPythonOutfitVO> layersObject;
|
||||
|
||||
@@ -12,19 +12,37 @@ import java.util.List;
|
||||
@ApiModel("design single 印花详情")
|
||||
public class DesignSinglePrint {
|
||||
|
||||
@ApiModelProperty("印花url")
|
||||
private String path;
|
||||
|
||||
@ApiModelProperty("印花位置")
|
||||
private List<Float> location;
|
||||
private List<Double> location;
|
||||
|
||||
@ApiModelProperty("印花大小")
|
||||
@Range(max = 1,message = "印花缩放值需用大于等于0小于等于1的数表示")
|
||||
private Float scale;
|
||||
private Double scale;
|
||||
|
||||
@Range(min = -360,max = 360,message = "印花旋转角度范围为-360° ~ 360°")
|
||||
@ApiModelProperty("印花角度")
|
||||
private Float angle;
|
||||
private Double angle;
|
||||
|
||||
@Min(value = 1)
|
||||
@ApiModelProperty("印花优先级")
|
||||
private Integer priority;
|
||||
|
||||
public DesignSinglePrint() {
|
||||
}
|
||||
|
||||
public DesignSinglePrint(String path, Double scale) {
|
||||
this.path = path;
|
||||
this.scale = scale;
|
||||
}
|
||||
|
||||
public DesignSinglePrint(String path, List<Double> location, Double scale, Double angle, Integer priority) {
|
||||
this.path = path;
|
||||
this.location = location;
|
||||
this.scale = scale;
|
||||
this.angle = angle;
|
||||
this.priority = priority;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user