Merge remote-tracking branch 'origin/develop' into dev_shb
# Conflicts: # src/main/java/com/ai/da/service/impl/DesignServiceImpl.java
This commit is contained in:
@@ -14,7 +14,19 @@ public class AccountPreLoginDTO {
|
||||
@ApiModelProperty("用户名")
|
||||
private String userName;
|
||||
|
||||
/*新增字段*/
|
||||
@NotBlank(message = "Please input email !")
|
||||
@ApiModelProperty("邮箱")
|
||||
private String email;
|
||||
|
||||
@NotBlank(message = "password cannot be empty!")
|
||||
@ApiModelProperty("密码")
|
||||
private String password;
|
||||
|
||||
@NotBlank(message = "operationType cannot be empty")
|
||||
@ApiModelProperty("操作类型 LOGIN 注册 FORGET_PWD 忘记密码 BIND_MAILBOX 绑定邮箱")
|
||||
private String operationType;
|
||||
|
||||
@ApiModelProperty("异常ip")
|
||||
private String ip;
|
||||
}
|
||||
|
||||
27
src/main/java/com/ai/da/model/dto/ChatFlushDTO.java
Normal file
27
src/main/java/com/ai/da/model/dto/ChatFlushDTO.java
Normal file
@@ -0,0 +1,27 @@
|
||||
package com.ai.da.model.dto;
|
||||
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
import javax.validation.constraints.NotBlank;
|
||||
import javax.validation.constraints.NotNull;
|
||||
|
||||
/**
|
||||
* @author aida
|
||||
* @version 1.0
|
||||
* @project aida_back
|
||||
* @description 刷新缓存DTO
|
||||
* @date 2023/7/25 16:51:16
|
||||
*/
|
||||
|
||||
@Data
|
||||
public class ChatFlushDTO {
|
||||
@NotNull(message = "userId cannot be empty!")
|
||||
@ApiModelProperty("用户id")
|
||||
private String user_id;
|
||||
|
||||
@NotBlank(message = "sessionId cannot be empty!")
|
||||
@ApiModelProperty("会话ID")
|
||||
private String session_id;
|
||||
|
||||
}
|
||||
34
src/main/java/com/ai/da/model/dto/ChatSendDTO.java
Normal file
34
src/main/java/com/ai/da/model/dto/ChatSendDTO.java
Normal file
@@ -0,0 +1,34 @@
|
||||
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.NotNull;
|
||||
|
||||
/**
|
||||
* @author aida
|
||||
* @version 1.0
|
||||
* @project aida_back
|
||||
* @description 机器人对话DTO
|
||||
* @date 2023/7/25 16:35:55
|
||||
*/
|
||||
|
||||
@Data
|
||||
@ApiModel("chatRobot 对话")
|
||||
public class ChatSendDTO {
|
||||
|
||||
@NotNull(message = "userId cannot be empty!")
|
||||
@ApiModelProperty("用户id")
|
||||
private String user_id;
|
||||
|
||||
@NotBlank(message = "sessionId cannot be empty!")
|
||||
@ApiModelProperty("会话ID")
|
||||
private String session_id;
|
||||
|
||||
@NotBlank(message = "Please input the message !")
|
||||
@ApiModelProperty("消息")
|
||||
private String message;
|
||||
|
||||
}
|
||||
28
src/main/java/com/ai/da/model/dto/GenerateLikeDTO.java
Normal file
28
src/main/java/com/ai/da/model/dto/GenerateLikeDTO.java
Normal file
@@ -0,0 +1,28 @@
|
||||
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.NotNull;
|
||||
|
||||
@Data
|
||||
@ApiModel("Generate like入参")
|
||||
public class GenerateLikeDTO {
|
||||
|
||||
@NotNull(message = "generateDetail id cannot be empty!")
|
||||
@ApiModelProperty("generateDetailId")
|
||||
private Long generateDetailId;
|
||||
|
||||
@NotBlank(message = "level1Type cannot be empty!")
|
||||
@ApiModelProperty("一级类型 Sketchboard Printboard")
|
||||
private String level1Type;
|
||||
|
||||
@ApiModelProperty("当一级类型为Sketchboard时,二级类型 Outwear Dress Blouse Skirt Trousers")
|
||||
private String level2Type;
|
||||
|
||||
@NotBlank(message = "timeZone cannot be empty!")
|
||||
@ApiModelProperty("本地时区,比如 'Asia/Tokyo' 东京时间 , 'Asia/Shanghai' 北京时间 由js本地获取")
|
||||
private String timeZone;
|
||||
}
|
||||
@@ -0,0 +1,39 @@
|
||||
package com.ai.da.model.dto;
|
||||
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
import javax.validation.constraints.NotBlank;
|
||||
|
||||
@Data
|
||||
@ApiModel("GenerateThroughImageTextDTO")
|
||||
public class GenerateThroughImageTextDTO {
|
||||
|
||||
@ApiModelProperty("caption")
|
||||
String text;
|
||||
|
||||
@ApiModelProperty("图片在t_collection_element表中的id")
|
||||
Long collectionElementId;
|
||||
|
||||
@NotBlank(message = "you have to choose the generate type")
|
||||
@ApiModelProperty("text image text-image")
|
||||
String generateType;
|
||||
|
||||
@ApiModelProperty("图片是update,还是从library中选择")
|
||||
String designType;
|
||||
|
||||
@NotBlank(message = "level1Type cannot be empty!")
|
||||
@ApiModelProperty("Moodboard Printboard Sketchboard MarketingSketch")
|
||||
String level1Type;
|
||||
|
||||
@ApiModelProperty("Outwear Dress Blouse Skirt Trousers")
|
||||
String level2Type;
|
||||
|
||||
@ApiModelProperty("选择的模型名")
|
||||
String version;
|
||||
|
||||
@NotBlank(message = "timeZone cannot be empty!")
|
||||
@ApiModelProperty("本地时区,比如 'Asia/Tokyo' 东京时间 , 'Asia/Shanghai' 北京时间 由js本地获取")
|
||||
String timeZone;
|
||||
}
|
||||
@@ -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
|
||||
@@ -26,8 +24,12 @@ public class DesignItemClothesDetailVO {
|
||||
private String path;
|
||||
|
||||
@ApiModelProperty(" 颜色 存 RGB值 中间空格分隔 比如 58 58 169")
|
||||
private String color;
|
||||
// private String color;
|
||||
private PantoneVO color;
|
||||
|
||||
@ApiModelProperty("对应的print图片对象")
|
||||
private DesignPythonItemPrint printObject;
|
||||
|
||||
@ApiModelProperty("对应图层信息")
|
||||
private List<DesignPythonOutfitVO> layersObject;
|
||||
}
|
||||
|
||||
@@ -15,6 +15,7 @@ public class DesignItemDetailVO {
|
||||
private Long designItemId;
|
||||
|
||||
@ApiModelProperty("designItem图片")
|
||||
// private DesignPythonOutfitVO designItemUrl;
|
||||
private String designItemUrl;
|
||||
|
||||
@ApiModelProperty("design高级图片")
|
||||
|
||||
@@ -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 {
|
||||
@@ -19,8 +21,12 @@ public class DesignItemOthersDetailVO {
|
||||
private String path;
|
||||
|
||||
@ApiModelProperty(" 颜色 存 RGB值 中间空格分隔 比如 58 58 169")
|
||||
private String color;
|
||||
// private String color;
|
||||
private PantoneVO color;
|
||||
|
||||
@ApiModelProperty("对应的print图片的绝对路径")
|
||||
private DesignPythonItemPrint printObject;
|
||||
|
||||
@ApiModelProperty("对应图层信息")
|
||||
private List<DesignPythonOutfitVO> layersObject;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,28 @@
|
||||
package com.ai.da.model.vo;
|
||||
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
@Data
|
||||
@ApiModel("designItem detail layer响应")
|
||||
public class DesignPythonOutfitDetailVO {
|
||||
|
||||
@ApiModelProperty("各图层id")
|
||||
private Long id;
|
||||
|
||||
@ApiModelProperty("图片所属分类 earring_back/front,hairstyle_back/front,skirt_back/front,shoes_left/right,body 等")
|
||||
private String imageCategory;
|
||||
|
||||
@ApiModelProperty("图片url")
|
||||
private String imageUrl;
|
||||
|
||||
@ApiModelProperty("蒙版url")
|
||||
private String maskUrl;
|
||||
|
||||
@ApiModelProperty("坐标")
|
||||
private String position;
|
||||
|
||||
@ApiModelProperty("优先级")
|
||||
private Integer priority;
|
||||
}
|
||||
37
src/main/java/com/ai/da/model/vo/DesignPythonOutfitVO.java
Normal file
37
src/main/java/com/ai/da/model/vo/DesignPythonOutfitVO.java
Normal file
@@ -0,0 +1,37 @@
|
||||
package com.ai.da.model.vo;
|
||||
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
@Data
|
||||
@ApiModel("designItem detail从python端获取的合成图+各图层响应")
|
||||
public class DesignPythonOutfitVO {
|
||||
|
||||
/**
|
||||
* ID
|
||||
*/
|
||||
@ApiModelProperty(value = "ID")
|
||||
private Long id;
|
||||
|
||||
/**
|
||||
* 图层
|
||||
*/
|
||||
@ApiModelProperty(value = "图层名")
|
||||
private String imageCategory;
|
||||
/**
|
||||
* 对应的图片的绝对路径
|
||||
*/
|
||||
@ApiModelProperty(value = "对应的图片的绝对路径")
|
||||
private String imageUrl;
|
||||
/**
|
||||
* mask_url
|
||||
*/
|
||||
@ApiModelProperty(value = "遮罩")
|
||||
private String maskUrl;
|
||||
/**
|
||||
* 位置
|
||||
*/
|
||||
@ApiModelProperty(value = "位置")
|
||||
private String position;
|
||||
}
|
||||
18
src/main/java/com/ai/da/model/vo/GenerateCaptionVO.java
Normal file
18
src/main/java/com/ai/da/model/vo/GenerateCaptionVO.java
Normal file
@@ -0,0 +1,18 @@
|
||||
package com.ai.da.model.vo;
|
||||
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
||||
@AllArgsConstructor
|
||||
@NoArgsConstructor
|
||||
@Data
|
||||
@ApiModel("生成sketch的caption")
|
||||
public class GenerateCaptionVO {
|
||||
|
||||
@ApiModelProperty("caption")
|
||||
private String caption;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,16 @@
|
||||
package com.ai.da.model.vo;
|
||||
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
@Data
|
||||
@ApiModel("生成 ConllectionItem响应")
|
||||
public class GenerateCollectionItemVO {
|
||||
|
||||
@ApiModelProperty("generate生成图片的id")
|
||||
private Long generateItemId;
|
||||
|
||||
@ApiModelProperty("generate生成图片的url")
|
||||
private String generateItemUrl;
|
||||
}
|
||||
30
src/main/java/com/ai/da/model/vo/GenerateCollectionVO.java
Normal file
30
src/main/java/com/ai/da/model/vo/GenerateCollectionVO.java
Normal file
@@ -0,0 +1,30 @@
|
||||
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("generate响应vo")
|
||||
public class GenerateCollectionVO {
|
||||
|
||||
@ApiModelProperty("generateId")
|
||||
private Long generateId;
|
||||
|
||||
@ApiModelProperty("collection")
|
||||
private Long collectionId;
|
||||
|
||||
@ApiModelProperty("生成的图片信息")
|
||||
private List<GenerateCollectionItemVO> generatedCollectionItems;
|
||||
|
||||
public GenerateCollectionVO(Long generateId, Long collectionId, List<GenerateCollectionItemVO> generatedCollectionItems) {
|
||||
this.generateId = generateId;
|
||||
this.collectionId = collectionId;
|
||||
this.generatedCollectionItems = generatedCollectionItems;
|
||||
}
|
||||
|
||||
public GenerateCollectionVO() {
|
||||
}
|
||||
}
|
||||
20
src/main/java/com/ai/da/model/vo/GenerateLikeVO.java
Normal file
20
src/main/java/com/ai/da/model/vo/GenerateLikeVO.java
Normal file
@@ -0,0 +1,20 @@
|
||||
package com.ai.da.model.vo;
|
||||
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
@Data
|
||||
@ApiModel("generate like 响应")
|
||||
public class GenerateLikeVO {
|
||||
|
||||
@ApiModelProperty("like的图片加入library的id")
|
||||
private Long libraryId;
|
||||
|
||||
public GenerateLikeVO(Long libraryId) {
|
||||
this.libraryId = libraryId;
|
||||
}
|
||||
|
||||
public GenerateLikeVO() {
|
||||
}
|
||||
}
|
||||
@@ -11,7 +11,7 @@ import javax.validation.constraints.NotBlank;
|
||||
@ApiModel("潘通-响应")
|
||||
public class PantoneVO {
|
||||
|
||||
@ApiModelProperty("id")
|
||||
@ApiModelProperty("id -> pantoneIndex")
|
||||
private Integer id;
|
||||
|
||||
@ApiModelProperty("名字")
|
||||
@@ -23,10 +23,10 @@ public class PantoneVO {
|
||||
@ApiModelProperty("r")
|
||||
private Integer r;
|
||||
|
||||
@ApiModelProperty("r")
|
||||
@ApiModelProperty("g")
|
||||
private Integer g;
|
||||
|
||||
@ApiModelProperty("r")
|
||||
@ApiModelProperty("b")
|
||||
private Integer b;
|
||||
|
||||
@ApiModelProperty("h")
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
package com.ai.da.model.vo;
|
||||
|
||||
import com.ai.da.model.dto.CollectionColorDTO;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
@@ -1,17 +1,13 @@
|
||||
package com.ai.da.model.vo;
|
||||
|
||||
import com.ai.da.common.enums.CurrentDesignPrintPictureTypeEnum;
|
||||
import com.ai.da.mapper.entity.CollectionElement;
|
||||
import com.ai.da.mapper.entity.Library;
|
||||
import com.ai.da.model.dto.CollectionColorDTO;
|
||||
import com.ai.da.python.vo.DesignPythonItemPrint;
|
||||
import com.google.common.collect.Lists;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Objects;
|
||||
|
||||
@Data
|
||||
@ApiModel("校验element响应")
|
||||
|
||||
Reference in New Issue
Block a user