视频图片儿分析模型。
This commit is contained in:
@@ -59,10 +59,10 @@ public class DetectVideoTemplate implements Serializable {
|
||||
private String ownerPhone;
|
||||
|
||||
/**
|
||||
* 头像名称
|
||||
* 模板名称
|
||||
*/
|
||||
@TableField("avatar_name")
|
||||
private String avatarName;
|
||||
@TableField("template_name")
|
||||
private String templateName;
|
||||
|
||||
/**
|
||||
* 模版ID,生成视频时使用
|
||||
@@ -70,6 +70,31 @@ public class DetectVideoTemplate implements Serializable {
|
||||
@TableField("template_id")
|
||||
private String templateId;
|
||||
|
||||
/**
|
||||
* 临时访问链接
|
||||
*/
|
||||
@TableField("temp_url")
|
||||
private String tempUrl;
|
||||
|
||||
/**
|
||||
* 临时链接过期时间
|
||||
*/
|
||||
@TableField("temp_url_expires_at")
|
||||
private LocalDateTime tempUrlExpiresAt;
|
||||
|
||||
/**
|
||||
* 任务状态
|
||||
*/
|
||||
@TableField("task_status")
|
||||
private String taskStatus;
|
||||
|
||||
/**
|
||||
* 任务id
|
||||
*/
|
||||
@TableField("task_id")
|
||||
private String taskId;
|
||||
|
||||
|
||||
/**
|
||||
* 是否成功
|
||||
*/
|
||||
|
||||
150
src/main/java/com/rj/entity/VideoImageAnalysis.java
Normal file
150
src/main/java/com/rj/entity/VideoImageAnalysis.java
Normal file
@@ -0,0 +1,150 @@
|
||||
package com.rj.entity;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import com.baomidou.mybatisplus.annotation.TableField;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import lombok.experimental.Accessors;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.time.LocalDateTime;
|
||||
|
||||
/**
|
||||
* AI视频图像分析记录实体
|
||||
*/
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = false)
|
||||
@Accessors(chain = true)
|
||||
@TableName("video_image_analysis")
|
||||
public class VideoImageAnalysis implements Serializable {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* 主键UUID
|
||||
*/
|
||||
@TableId(value = "id", type = IdType.ASSIGN_UUID)
|
||||
private String id;
|
||||
|
||||
/**
|
||||
* 使用的AI模型
|
||||
*/
|
||||
@TableField("model")
|
||||
private String model;
|
||||
|
||||
/**
|
||||
* 图像URL
|
||||
*/
|
||||
@TableField("video_image_url")
|
||||
private String videoImageUrl;
|
||||
|
||||
/**
|
||||
* 图像临时访问URL
|
||||
*/
|
||||
@TableField("video_image_temp_url")
|
||||
private String videoImageTempUrl;
|
||||
|
||||
/**
|
||||
* 用户问题文本
|
||||
*/
|
||||
@TableField("user_question")
|
||||
private String userQuestion;
|
||||
|
||||
/**
|
||||
* AI返回的内容
|
||||
*/
|
||||
@TableField("response_content")
|
||||
private String responseContent;
|
||||
|
||||
/**
|
||||
* 角色
|
||||
*/
|
||||
@TableField("role")
|
||||
private String role;
|
||||
|
||||
/**
|
||||
* 完成原因
|
||||
*/
|
||||
@TableField("finish_reason")
|
||||
private String finishReason;
|
||||
|
||||
/**
|
||||
* 选择索引
|
||||
*/
|
||||
@TableField("choice_index")
|
||||
private Integer choiceIndex;
|
||||
|
||||
/**
|
||||
* 提示词token数量
|
||||
*/
|
||||
@TableField("usage_prompt_tokens")
|
||||
private Integer usagePromptTokens;
|
||||
|
||||
/**
|
||||
* 完成token数量
|
||||
*/
|
||||
@TableField("usage_completion_tokens")
|
||||
private Integer usageCompletionTokens;
|
||||
|
||||
/**
|
||||
* 总token数量
|
||||
*/
|
||||
@TableField("usage_total_tokens")
|
||||
private Integer usageTotalTokens;
|
||||
|
||||
/**
|
||||
* 完整请求参数JSON
|
||||
*/
|
||||
@TableField("request_data")
|
||||
private String requestData;
|
||||
|
||||
/**
|
||||
* 完整响应数据JSON
|
||||
*/
|
||||
@TableField("response_data")
|
||||
private String responseData;
|
||||
|
||||
/**
|
||||
* 用户姓名
|
||||
*/
|
||||
@TableField("user_name")
|
||||
private String userName;
|
||||
|
||||
/**
|
||||
* 用户电话
|
||||
*/
|
||||
@TableField("user_phone")
|
||||
private String userPhone;
|
||||
|
||||
/**
|
||||
* 会话名称
|
||||
*/
|
||||
@TableField("session_name")
|
||||
private String sessionName;
|
||||
|
||||
/**
|
||||
* 状态:1-成功,0-失败
|
||||
*/
|
||||
@TableField("status")
|
||||
private Integer status;
|
||||
|
||||
/**
|
||||
* 分析类型
|
||||
*/
|
||||
@TableField("type")
|
||||
private String type;
|
||||
|
||||
/**
|
||||
* 创建时间
|
||||
*/
|
||||
@TableField("created_at")
|
||||
private LocalDateTime createdAt;
|
||||
|
||||
/**
|
||||
* 更新时间
|
||||
*/
|
||||
@TableField("updated_at")
|
||||
private LocalDateTime updatedAt;
|
||||
}
|
||||
@@ -4,6 +4,8 @@ import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableField;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import jakarta.validation.constraints.NotBlank;
|
||||
import lombok.Data;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
@@ -157,6 +159,10 @@ public class VideoSynthesisLog {
|
||||
@TableField("video_temp_url")
|
||||
private String videoTempUrl;
|
||||
|
||||
@NotBlank(message = "模板URL")
|
||||
@Schema(description = "模板URL")
|
||||
private String videoTemplateUrl;
|
||||
|
||||
/**
|
||||
* 图像区域坐标 [x1, y1, x2, y2]
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user