34 lines
1.4 KiB
Go
34 lines
1.4 KiB
Go
package dao
|
|
|
|
import "lone-services/pkg/utils"
|
|
|
|
type ImageAnalysisSub struct {
|
|
Id int64 `gorm:"column:id;primaryKey;autoIncrement" json:"id"`
|
|
TaskId string `gorm:"column:task_id" json:"task_id"`
|
|
SubTaskId string `gorm:"column:sub_task_id" json:"sub_task_id"`
|
|
Status int8 `gorm:"column:status" json:"status"`
|
|
FilePath string `gorm:"column:file_path" json:"file_path"`
|
|
ImageDir string `gorm:"column:image_dir" json:"image_dir"`
|
|
Scene string `gorm:"column:scene" json:"scene"`
|
|
UploadStartTs string `gorm:"column:upload_start_ts" json:"upload_start_ts"`
|
|
UploadEndTs string `gorm:"column:upload_end_ts" json:"upload_end_ts"`
|
|
ProcessStartTs string `gorm:"column:process_start_ts" json:"process_start_ts"`
|
|
ProcessEndTs string `gorm:"column:process_end_ts" json:"process_end_ts"`
|
|
CreatedAt utils.CustomTime `gorm:"column:created_at" json:"created_at"`
|
|
UpdatedAt utils.CustomTime `gorm:"column:updated_at" json:"updated_at"`
|
|
}
|
|
|
|
type HandleZipResource struct {
|
|
FilePath string `json:"file_path"`
|
|
FinalDir string `json:"final_dir"`
|
|
TargetDir string `json:"target_dir"`
|
|
}
|
|
|
|
type TaskTimeStamp struct {
|
|
TaskId string
|
|
SubTaskId string
|
|
UploadStartTs string
|
|
UploadEndTs string
|
|
ProcessStartTs string
|
|
}
|