TASK:机器人、首页、history模块代码;
This commit is contained in:
13
src/main/java/com/ai/da/model/dto/ChatRobotLibraryDTO.java
Normal file
13
src/main/java/com/ai/da/model/dto/ChatRobotLibraryDTO.java
Normal file
@@ -0,0 +1,13 @@
|
||||
package com.ai.da.model.dto;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
@Data
|
||||
public class ChatRobotLibraryDTO {
|
||||
private Long userId;
|
||||
private Long id;
|
||||
|
||||
private String url;
|
||||
|
||||
private String presignedUrl;
|
||||
}
|
||||
@@ -21,7 +21,7 @@ public class ChatSendDTO {
|
||||
|
||||
@NotNull(message = "userId cannot be empty!")
|
||||
@ApiModelProperty("用户id")
|
||||
private String user_id;
|
||||
private Long user_id;
|
||||
|
||||
@NotBlank(message = "sessionId cannot be empty!")
|
||||
@ApiModelProperty("会话ID")
|
||||
|
||||
@@ -50,4 +50,8 @@ public class DesignCollectionDTO {
|
||||
@NotBlank(message = "timeZone cannot be empty!")
|
||||
@ApiModelProperty("本地时区,比如 'Asia/Tokyo' 东京时间 , 'Asia/Shanghai' 北京时间 由js本地获取")
|
||||
private String timeZone;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
@@ -16,6 +16,10 @@ public class DesignLikeDTO {
|
||||
@ApiModelProperty("like图片对应的designItemId")
|
||||
private Long designItemId;
|
||||
|
||||
@NotNull(message = "designPythonOutfitId id cannot be empty!")
|
||||
@ApiModelProperty("like图片对应的designItemId")
|
||||
private Long designPythonOutfitId;
|
||||
|
||||
@ApiModelProperty("like design到对应collection 对应的userGroupId,不传表示selected collection 为null")
|
||||
private Long userGroupId;
|
||||
|
||||
|
||||
@@ -0,0 +1,24 @@
|
||||
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.Size;
|
||||
import java.util.List;
|
||||
|
||||
@Data
|
||||
@ApiModel("Library编辑")
|
||||
public class LibraryLevel2TypeUpdateDTO {
|
||||
|
||||
@NotEmpty(message = "libraryId cannot be empty!")
|
||||
@ApiModelProperty("libraryId")
|
||||
private Long libraryId;
|
||||
|
||||
@NotBlank(message = "level2Type cannot be empty!")
|
||||
@ApiModelProperty("level2Type")
|
||||
private String level2Type;
|
||||
|
||||
}
|
||||
14
src/main/java/com/ai/da/model/vo/ChatRobotLibraryVO.java
Normal file
14
src/main/java/com/ai/da/model/vo/ChatRobotLibraryVO.java
Normal file
@@ -0,0 +1,14 @@
|
||||
package com.ai.da.model.vo;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
@Data
|
||||
public class ChatRobotLibraryVO {
|
||||
|
||||
private Long id;
|
||||
|
||||
private String url;
|
||||
|
||||
private String presignedUrl;
|
||||
|
||||
}
|
||||
13
src/main/java/com/ai/da/model/vo/ChatRobotVO.java
Normal file
13
src/main/java/com/ai/da/model/vo/ChatRobotVO.java
Normal file
@@ -0,0 +1,13 @@
|
||||
package com.ai.da.model.vo;
|
||||
|
||||
import com.ai.da.mapper.entity.ChatRobot;
|
||||
import lombok.Data;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
@Data
|
||||
public class ChatRobotVO extends ChatRobot {
|
||||
|
||||
private List<ChatRobotLibraryVO> chatRobotLibraryList;
|
||||
|
||||
}
|
||||
@@ -35,4 +35,7 @@ public class CollectionElementVO {
|
||||
@ApiModelProperty("元素存放地址,绝对路径")
|
||||
private String url;
|
||||
|
||||
@ApiModelProperty("元素存放地址,绝对路径")
|
||||
private String minioPath;
|
||||
|
||||
}
|
||||
|
||||
@@ -38,5 +38,8 @@ public class LibraryUpdateVo implements Serializable {
|
||||
|
||||
@ApiModelProperty("存放地址")
|
||||
private String url;
|
||||
|
||||
@ApiModelProperty("存放地址")
|
||||
private String minioPath;
|
||||
|
||||
}
|
||||
|
||||
@@ -31,6 +31,9 @@ public class QueryLibraryPageVO {
|
||||
@ApiModelProperty("图片地址")
|
||||
private String url;
|
||||
|
||||
@ApiModelProperty("图片minio地址")
|
||||
private String minioPath;
|
||||
|
||||
@ApiModelProperty("template 打点内容 level1Type为Models才传")
|
||||
private LibraryModelPointVO libraryModelPoint;
|
||||
}
|
||||
|
||||
@@ -16,6 +16,9 @@ public class UserLikeCollectionVO {
|
||||
@ApiModelProperty("mood版本id 没有传null")
|
||||
private String moodTemplateId;
|
||||
|
||||
@ApiModelProperty("mood版本id 没有传null")
|
||||
private String moodTemplateUrl;
|
||||
|
||||
@ApiModelProperty("情绪板图片 数组")
|
||||
private List<CollectionElementVO> moodBoards;
|
||||
|
||||
|
||||
@@ -16,6 +16,8 @@ public class UserLikeVO {
|
||||
private Long designId;
|
||||
@ApiModelProperty("designItemId")
|
||||
private Long designItemId;
|
||||
@ApiModelProperty("designPythonOutfitId")
|
||||
private Long designPythonOutfitId;
|
||||
@ApiModelProperty("图片路径")
|
||||
private String url;
|
||||
@ApiModelProperty("图片路径")
|
||||
|
||||
Reference in New Issue
Block a user