TASK:机器人、首页、history模块代码;
This commit is contained in:
41
src/main/java/com/ai/da/mapper/entity/ChatRobot.java
Normal file
41
src/main/java/com/ai/da/mapper/entity/ChatRobot.java
Normal file
@@ -0,0 +1,41 @@
|
||||
package com.ai.da.mapper.entity;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import lombok.experimental.Accessors;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.math.BigDecimal;
|
||||
import java.time.LocalDateTime;
|
||||
import java.util.Date;
|
||||
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = false)
|
||||
@Accessors(chain = true)
|
||||
@TableName("chat_robot")
|
||||
public class ChatRobot implements Serializable {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
@ApiModelProperty("ID")
|
||||
@TableId(value = "id", type = IdType.AUTO)
|
||||
private Long id;
|
||||
|
||||
private String sessionId;
|
||||
|
||||
private String input;
|
||||
|
||||
private String responseType;
|
||||
private String output;
|
||||
private Long promptTokens;
|
||||
private BigDecimal totalCost;
|
||||
private Long totalTokens;
|
||||
private Long completionTokens;
|
||||
private Integer successful;
|
||||
private Long userId;
|
||||
private LocalDateTime createTime;
|
||||
}
|
||||
15
src/main/java/com/ai/da/mapper/entity/ChatRobotMapper.java
Normal file
15
src/main/java/com/ai/da/mapper/entity/ChatRobotMapper.java
Normal file
@@ -0,0 +1,15 @@
|
||||
package com.ai.da.mapper.entity;
|
||||
|
||||
import com.ai.da.common.config.mybatis.plus.CommonMapper;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* Mapper 接口
|
||||
*
|
||||
* @author SHAHAIBO
|
||||
* @since 2023-09-25
|
||||
*/
|
||||
public interface ChatRobotMapper extends CommonMapper<ChatRobot> {
|
||||
|
||||
}
|
||||
@@ -78,4 +78,6 @@ public class Library implements Serializable {
|
||||
* 更新时间
|
||||
*/
|
||||
private Date updateDate;
|
||||
|
||||
// private Integer isCopy;
|
||||
}
|
||||
|
||||
@@ -67,7 +67,7 @@ public class SysFile implements Serializable {
|
||||
*/
|
||||
private Date updateDate;
|
||||
|
||||
private Integer isCopy;
|
||||
// private Integer isCopy;
|
||||
|
||||
public SysFile() {
|
||||
}
|
||||
|
||||
@@ -41,6 +41,10 @@ public class UserLike implements Serializable {
|
||||
* 关联的design_item ID
|
||||
*/
|
||||
private Long designItemId;
|
||||
/**
|
||||
* 关联的design_python_outfit ID
|
||||
*/
|
||||
private Long designPythonOutfitId;
|
||||
/**
|
||||
* 图片地址
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user