模特比例修改、sketch拼贴

This commit is contained in:
2025-03-25 11:19:55 +08:00
parent 6b62cf7299
commit 078a0c0dfb
10 changed files with 371 additions and 79 deletions

View File

@@ -0,0 +1,68 @@
package com.ai.da.model.dto;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
@Data
@ApiModel("ModifyModelProportionDTO")
public class ModifyModelProportionDTO {
@ApiModelProperty("模特id")
@NotNull(message = "model id cannot be empty")
private Long id;
@ApiModelProperty("Library || System")
@NotBlank(message = "model type cannot be empty")
private String type;
@ApiModelProperty("top")
@NotNull(message = "top cannot be empty")
private Integer top;
@ApiModelProperty("bottom")
@NotNull(message = "bottom cannot be empty")
private Integer bottom;
@ApiModelProperty("stretch")
@NotNull(message = "stretch cannot be empty")
private Float stretch;
@ApiModelProperty("模特minio地址")
@NotBlank(message = "modelPath type cannot be empty")
private String modelPath;
@NotNull(message = "handLeft cannot be null")
@NotEmpty(message = "handLeft cannot be empty")
@ApiModelProperty("handLeft")
private Float[] handLeft;
@NotNull(message = "handRight cannot be null")
@NotEmpty(message = "handRight cannot be empty")
@ApiModelProperty("handRight")
private Float[] handRight;
@NotNull(message = "shoulderLeft cannot be null")
@NotEmpty(message = "shoulderLeft cannot be empty")
@ApiModelProperty("shoulderLeft")
private Float[] shoulderLeft;
@NotNull(message = "shoulderRight cannot be null")
@NotEmpty(message = "shoulderRight cannot be empty")
@ApiModelProperty("shoulderRight")
private Float[] shoulderRight;
@NotNull(message = "waistbandLeft cannot be null")
@NotEmpty(message = "waistbandLeft cannot be empty")
@ApiModelProperty("waistbandLeft")
private Float[] waistbandLeft;
@NotNull(message = "waistbandRight cannot be null")
@NotEmpty(message = "waistbandRight cannot be empty")
@ApiModelProperty("waistbandRight")
private Float[] waistbandRight;
}

View File

@@ -1,32 +1,19 @@
package com.ai.da.model.dto;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.web.multipart.MultipartFile;
import java.util.List;
@Data
@ApiModel(value = "sketch拼贴")
public class SketchReconstructionDTO {
@ApiModelProperty("项目id")
private Long projectId;
@ApiModelProperty("拼贴图的base64数据")
private String collagePicture;
private List<Element> elements;
private MultipartFile file;
// like到library时分类用
// 识别衣服类型用
@ApiModelProperty("性别")
private String gender;
private boolean Save;
@Data
public static class Element{
private Long elementId;
private String elementSource;
private String path;
}
}