design detail 新增接口--编辑图层的位置、大小
This commit is contained in:
21
src/main/java/com/ai/da/model/vo/ComposeLayersVO.java
Normal file
21
src/main/java/com/ai/da/model/vo/ComposeLayersVO.java
Normal file
@@ -0,0 +1,21 @@
|
||||
package com.ai.da.model.vo;
|
||||
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
@Data
|
||||
@ApiModel("编辑图层位置大小,合成图层")
|
||||
public class ComposeLayersVO {
|
||||
|
||||
@ApiModelProperty("designItemId")
|
||||
private Long designItemId;
|
||||
|
||||
@ApiModelProperty("图层信息")
|
||||
private List<DesignPythonOutfitVO> layers;
|
||||
|
||||
@ApiModelProperty("合成图")
|
||||
private String designItemUrl;
|
||||
}
|
||||
@@ -23,9 +23,12 @@ public class DesignItemClothesDetailVO {
|
||||
@ApiModelProperty("上传时候对应的类型,一级类型 Moodboard Printboard Sketchboard MarketingSketch Colorboard")
|
||||
private String level1Type;
|
||||
|
||||
@ApiModelProperty("对应的图片的绝对路径")
|
||||
@ApiModelProperty("对应的图片路径")
|
||||
private String path;
|
||||
|
||||
@ApiModelProperty("对应图片minIO路径")
|
||||
private String minIOPath;
|
||||
|
||||
@ApiModelProperty(" 颜色 存 RGB值 中间空格分隔 比如 58 58 169")
|
||||
// private String color;
|
||||
private PantoneVO color;
|
||||
|
||||
@@ -17,9 +17,12 @@ public class DesignItemOthersDetailVO {
|
||||
@ApiModelProperty("对应的类型 有Hairstyle Earring Body")
|
||||
private String type;
|
||||
|
||||
@ApiModelProperty("对应的图片的绝对路径")
|
||||
@ApiModelProperty("对应的图片路径")
|
||||
private String path;
|
||||
|
||||
@ApiModelProperty("对应图片minIO路径")
|
||||
private String minIOPath;
|
||||
|
||||
@ApiModelProperty(" 颜色 存 RGB值 中间空格分隔 比如 58 58 169")
|
||||
// private String color;
|
||||
private PantoneVO color;
|
||||
|
||||
@@ -42,4 +42,9 @@ public class DesignPythonOutfitVO {
|
||||
*/
|
||||
@ApiModelProperty(value = "位置")
|
||||
private List<Long> position;
|
||||
/**
|
||||
* 图层缩放比例
|
||||
*/
|
||||
@ApiModelProperty(value = "缩放比例")
|
||||
private Float scale = 1.0f;
|
||||
}
|
||||
|
||||
@@ -15,6 +15,9 @@ public class DesignSinglePrint {
|
||||
@ApiModelProperty("印花url")
|
||||
private String path;
|
||||
|
||||
@ApiModelProperty("印花minIO路径")
|
||||
private String minIOPath;
|
||||
|
||||
@ApiModelProperty("印花位置")
|
||||
private List<Double> location;
|
||||
|
||||
@@ -38,8 +41,9 @@ public class DesignSinglePrint {
|
||||
this.scale = scale;
|
||||
}
|
||||
|
||||
public DesignSinglePrint(String path, List<Double> location, Double scale, Double angle, Integer priority) {
|
||||
public DesignSinglePrint(String path, String minIOPath, List<Double> location, Double scale, Double angle, Integer priority) {
|
||||
this.path = path;
|
||||
this.minIOPath = minIOPath;
|
||||
this.location = location;
|
||||
this.scale = scale;
|
||||
this.angle = angle;
|
||||
|
||||
@@ -8,11 +8,10 @@ import java.util.List;
|
||||
@Data
|
||||
public class DesignSingleVO {
|
||||
|
||||
@ApiModelProperty("designItemId")
|
||||
private Long designItemId;
|
||||
|
||||
/**
|
||||
* 全身图
|
||||
*/
|
||||
@ApiModelProperty("全身图")
|
||||
private String designItemUrl;
|
||||
|
||||
|
||||
|
||||
@@ -0,0 +1,15 @@
|
||||
package com.ai.da.model.vo;
|
||||
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
@Data
|
||||
@ApiModel("编辑图层的位置、大小")
|
||||
public class EditLayersPositionAndScaleVO {
|
||||
@ApiModelProperty("layers")
|
||||
private ComposeLayersVO layers;
|
||||
|
||||
@ApiModelProperty("时区")
|
||||
private String timeZone;
|
||||
}
|
||||
Reference in New Issue
Block a user