修改 design single功能
This commit is contained in:
@@ -26,6 +26,11 @@ public class DesignSingleDTO {
|
||||
@ApiModelProperty("others 元素")
|
||||
private List<DesignSingleItemDTO> others;
|
||||
|
||||
private DesignSingleItemDTO designSingleItem;
|
||||
|
||||
@ApiModelProperty("preview -> true submit -> false")
|
||||
private Boolean isPreview;
|
||||
|
||||
@NotBlank(message = "timeZone cannot be empty!")
|
||||
@ApiModelProperty("本地时区,比如 'Asia/Tokyo' 东京时间 , 'Asia/Shanghai' 北京时间 由js本地获取")
|
||||
private String timeZone;
|
||||
|
||||
@@ -0,0 +1,26 @@
|
||||
package com.ai.da.model.dto;
|
||||
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
import javax.validation.constraints.NotBlank;
|
||||
import javax.validation.constraints.NotNull;
|
||||
import java.util.List;
|
||||
|
||||
@Data
|
||||
public class DesignSingleIncludeLayersDTO {
|
||||
|
||||
@ApiModelProperty("designItemId")
|
||||
@NotNull(message = "designItemId cannot be empty!")
|
||||
private Long designItemId;
|
||||
|
||||
private List<DesignSingleItemDTO> designSingleItemDTOList;
|
||||
|
||||
@NotNull(message = "isPreview cannot be null")
|
||||
@ApiModelProperty("preview -> true submit -> false")
|
||||
private Boolean isPreview;
|
||||
|
||||
@NotBlank(message = "timeZone cannot be empty!")
|
||||
@ApiModelProperty("本地时区,比如 'Asia/Tokyo' 东京时间 , 'Asia/Shanghai' 北京时间 由js本地获取")
|
||||
private String timeZone;
|
||||
}
|
||||
@@ -1,6 +1,5 @@
|
||||
package com.ai.da.model.dto;
|
||||
|
||||
import com.ai.da.python.vo.DesignPythonItemPrint;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
@@ -25,5 +24,6 @@ public class DesignSingleItemDTO {
|
||||
private String color;
|
||||
|
||||
@ApiModelProperty("对应的print图片对象")
|
||||
private DesignPythonItemPrint printObject;
|
||||
// private DesignPythonItemPrint printObject;
|
||||
private DesignSinglePrintDTO printObject;
|
||||
}
|
||||
|
||||
23
src/main/java/com/ai/da/model/dto/DesignSinglePrintDTO.java
Normal file
23
src/main/java/com/ai/da/model/dto/DesignSinglePrintDTO.java
Normal file
@@ -0,0 +1,23 @@
|
||||
package com.ai.da.model.dto;
|
||||
|
||||
import com.ai.da.model.vo.DesignSinglePrint;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
@Data
|
||||
@ApiModel("design single 印花请求信息")
|
||||
public class DesignSinglePrintDTO {
|
||||
|
||||
@ApiModelProperty("印花url")
|
||||
private String path;
|
||||
|
||||
@ApiModelProperty("single -> true,overall -> false")
|
||||
private Boolean ifSingle;
|
||||
|
||||
@ApiModelProperty("印花详细")
|
||||
private List<DesignSinglePrint> prints;
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user