添加生成的内容历史记录、抽象实现类共用方法
This commit is contained in:
60
src/main/java/com/gxwebsoft/ai/entity/AiHistory.java
Normal file
60
src/main/java/com/gxwebsoft/ai/entity/AiHistory.java
Normal file
@@ -0,0 +1,60 @@
|
||||
package com.gxwebsoft.ai.entity;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.*;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.time.LocalDateTime;
|
||||
|
||||
/**
|
||||
* AI审计历史记录表
|
||||
*
|
||||
* @author yc
|
||||
*/
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = false)
|
||||
@Schema(name = "AiHistory对象", description = "AI审计历史记录表")
|
||||
@TableName("ai_history")
|
||||
public class AiHistory implements Serializable {
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
@Schema(description = "主键ID")
|
||||
@TableId(value = "id", type = IdType.AUTO)
|
||||
private Long id;
|
||||
|
||||
@Schema(description = "请求哈希值")
|
||||
private String requestHash;
|
||||
|
||||
@Schema(description = "接口名称")
|
||||
private String interfaceName;
|
||||
|
||||
@Schema(description = "请求参数序列化数据")
|
||||
private String requestData;
|
||||
|
||||
@Schema(description = "响应结果序列化数据")
|
||||
private String responseData;
|
||||
|
||||
@Schema(description = "用户ID")
|
||||
private Integer userId;
|
||||
|
||||
@Schema(description = "用户名")
|
||||
private String username;
|
||||
|
||||
@Schema(description = "状态, 0正常, 1冻结")
|
||||
private Integer status;
|
||||
|
||||
@Schema(description = "是否删除, 0否, 1是")
|
||||
@TableLogic
|
||||
private Integer deleted;
|
||||
|
||||
@Schema(description = "租户id")
|
||||
private Integer tenantId;
|
||||
|
||||
@Schema(description = "创建时间")
|
||||
private LocalDateTime createTime;
|
||||
|
||||
@Schema(description = "修改时间")
|
||||
private LocalDateTime updateTime;
|
||||
}
|
||||
Reference in New Issue
Block a user