修改 design single功能
This commit is contained in:
@@ -3,10 +3,8 @@ package com.ai.da.model.vo;
|
||||
import com.ai.da.python.vo.DesignPythonItemPrint;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Data;
|
||||
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
|
||||
@Data
|
||||
@@ -31,4 +29,7 @@ public class DesignItemClothesDetailVO {
|
||||
|
||||
@ApiModelProperty("对应的print图片对象")
|
||||
private DesignPythonItemPrint printObject;
|
||||
|
||||
@ApiModelProperty("对应图层信息")
|
||||
private List<DesignPythonOutfitVO> layersObject;
|
||||
}
|
||||
|
||||
@@ -15,7 +15,8 @@ public class DesignItemDetailVO {
|
||||
private Long designItemId;
|
||||
|
||||
@ApiModelProperty("designItem图片")
|
||||
private DesignPythonOutfitVO designItemUrl;
|
||||
// private DesignPythonOutfitVO designItemUrl;
|
||||
private String designItemUrl;
|
||||
|
||||
@ApiModelProperty("design高级图片")
|
||||
private String highDesignUrl;
|
||||
|
||||
@@ -5,6 +5,8 @@ import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
@Data
|
||||
@ApiModel("designItem detail others 响应")
|
||||
public class DesignItemOthersDetailVO {
|
||||
@@ -24,4 +26,7 @@ public class DesignItemOthersDetailVO {
|
||||
|
||||
@ApiModelProperty("对应的print图片的绝对路径")
|
||||
private DesignPythonItemPrint printObject;
|
||||
|
||||
@ApiModelProperty("对应图层信息")
|
||||
private List<DesignPythonOutfitVO> layersObject;
|
||||
}
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
package com.ai.da.model.vo;
|
||||
|
||||
import com.ai.da.mapper.entity.TDesignPythonOutfitDetail;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
@@ -11,14 +10,36 @@ import java.util.List;
|
||||
@ApiModel("designItem detail从python端获取的合成图+各图层响应")
|
||||
public class DesignPythonOutfitVO {
|
||||
|
||||
@ApiModelProperty("当前图片无图层信息时,为空")
|
||||
private Long designPythonOutfitId;
|
||||
/**
|
||||
* ID
|
||||
*/
|
||||
@ApiModelProperty(value = "ID")
|
||||
private Long id;
|
||||
|
||||
@ApiModelProperty("合成图")
|
||||
String designPythonOutfitUrl;
|
||||
/**
|
||||
* 图层
|
||||
*/
|
||||
@ApiModelProperty(value = "图层名")
|
||||
private String imageCategory;
|
||||
|
||||
// TODO
|
||||
// 需明确,不需要的数据不要返回
|
||||
@ApiModelProperty("各部分图层信息")
|
||||
List<TDesignPythonOutfitDetail> designItemDetailLayers;
|
||||
/**
|
||||
* 图层大小
|
||||
*/
|
||||
@ApiModelProperty(value = "图层大小")
|
||||
private List<Long> imageSize;
|
||||
/**
|
||||
* 对应的图片的绝对路径
|
||||
*/
|
||||
@ApiModelProperty(value = "对应的图片的绝对路径")
|
||||
private String imageUrl;
|
||||
/**
|
||||
* mask_url
|
||||
*/
|
||||
@ApiModelProperty(value = "遮罩")
|
||||
private String maskUrl;
|
||||
/**
|
||||
* 位置
|
||||
*/
|
||||
@ApiModelProperty(value = "位置")
|
||||
private List<Long> position;
|
||||
}
|
||||
|
||||
31
src/main/java/com/ai/da/model/vo/DesignSinglePrint.java
Normal file
31
src/main/java/com/ai/da/model/vo/DesignSinglePrint.java
Normal file
@@ -0,0 +1,31 @@
|
||||
package com.ai.da.model.vo;
|
||||
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
import org.hibernate.validator.constraints.Range;
|
||||
|
||||
import javax.validation.constraints.Min;
|
||||
import java.util.List;
|
||||
|
||||
@Data
|
||||
@ApiModel("design single 印花详情")
|
||||
public class DesignSinglePrint {
|
||||
|
||||
@ApiModelProperty("印花位置")
|
||||
@Range(max = 1L,message = "印花坐标需用大于等于0小于等于1的数表示")
|
||||
private List<Float> location;
|
||||
|
||||
@ApiModelProperty("印花大小")
|
||||
@Range(max = 1,message = "印花缩放值需用大于等于0小于等于1的数表示")
|
||||
private Float scale;
|
||||
|
||||
@Range(min = -360,max = 360,message = "印花旋转角度范围为-360° ~ 360°")
|
||||
@ApiModelProperty("印花角度")
|
||||
private Float angle;
|
||||
|
||||
@Min(value = 1)
|
||||
@ApiModelProperty("印花优先级")
|
||||
private Integer priority;
|
||||
|
||||
}
|
||||
22
src/main/java/com/ai/da/model/vo/DesignSingleVO.java
Normal file
22
src/main/java/com/ai/da/model/vo/DesignSingleVO.java
Normal file
@@ -0,0 +1,22 @@
|
||||
package com.ai.da.model.vo;
|
||||
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
@Data
|
||||
public class DesignSingleVO {
|
||||
|
||||
private Long designItemId;
|
||||
|
||||
/**
|
||||
* 全身图
|
||||
*/
|
||||
private String designItemUrl;
|
||||
|
||||
|
||||
@ApiModelProperty("clothes 数组")
|
||||
private List<DesignItemClothesDetailVO> clothes;
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user