refactor: flatten dto entity and mapper packages
This commit is contained in:
56
src/main/java/com/label/entity/VideoProcessJob.java
Normal file
56
src/main/java/com/label/entity/VideoProcessJob.java
Normal file
@@ -0,0 +1,56 @@
|
||||
package com.label.entity;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import lombok.Data;
|
||||
|
||||
import java.time.LocalDateTime;
|
||||
|
||||
/**
|
||||
* 瑙嗛澶勭悊浠诲姟瀹炰綋锛屽搴?video_process_job 琛ㄣ€? *
|
||||
* jobType 鍙栧€硷細FRAME_EXTRACT / VIDEO_TO_TEXT
|
||||
* status 鍙栧€硷細PENDING / RUNNING / SUCCESS / FAILED / RETRYING
|
||||
*/
|
||||
@Data
|
||||
@TableName("video_process_job")
|
||||
public class VideoProcessJob {
|
||||
|
||||
@TableId(type = IdType.AUTO)
|
||||
private Long id;
|
||||
|
||||
/** 鎵€灞炲叕鍙革紙澶氱鎴烽敭锛?*/
|
||||
private Long companyId;
|
||||
|
||||
/** 鍏宠仈璧勬枡 ID */
|
||||
private Long sourceId;
|
||||
|
||||
/** 浠诲姟绫诲瀷锛欶RAME_EXTRACT / VIDEO_TO_TEXT */
|
||||
private String jobType;
|
||||
|
||||
/** 浠诲姟鐘舵€侊細PENDING / RUNNING / SUCCESS / FAILED / RETRYING */
|
||||
private String status;
|
||||
|
||||
/** 浠诲姟鍙傛暟锛圝SONB锛屼緥濡?{"frameInterval": 30}锛?*/
|
||||
private String params;
|
||||
|
||||
/** AI 澶勭悊杈撳嚭璺緞锛堟垚鍔熷悗濉啓锛?*/
|
||||
private String outputPath;
|
||||
|
||||
/** 宸查噸璇曟鏁?*/
|
||||
private Integer retryCount;
|
||||
|
||||
/** 鏈€澶ч噸璇曟鏁帮紙榛樿 3锛?*/
|
||||
private Integer maxRetries;
|
||||
|
||||
/** 閿欒淇℃伅 */
|
||||
private String errorMessage;
|
||||
|
||||
private LocalDateTime startedAt;
|
||||
|
||||
private LocalDateTime completedAt;
|
||||
|
||||
private LocalDateTime createdAt;
|
||||
|
||||
private LocalDateTime updatedAt;
|
||||
}
|
||||
Reference in New Issue
Block a user