Files
observer/server/biz/model/entity/gen_task.go
T
2026-09-07 15:04:11 +08:00

17 lines
1.1 KiB
Go

package entity
import "github.com/gogf/gf/v2/os/gtime"
// GenTask 文生图批量生成任务:异步逐张调 local-ai,进度落库供前端轮询。
type GenTask struct {
Id int64 `json:"id" orm:"id" description:"自增主键"`
DatasetId int64 `json:"datasetId" orm:"dataset_id" description:"所属数据集"`
Status string `json:"status" orm:"status" description:"running|done|failed"`
Total int `json:"total" orm:"total" description:"计划生成张数"`
Done int `json:"done" orm:"done" description:"已处理张数(含剔除)"`
Rejected int `json:"rejected" orm:"rejected" description:"空检剔除张数(负样本生成专用,RF-DETR 检出即剔除)"`
Error string `json:"error" orm:"error" description:"失败原因(部分失败/全部失败)"`
CreatedAt *gtime.Time `json:"createdAt" orm:"created_at" description:"创建时间"`
FinishedAt *gtime.Time `json:"finishedAt" orm:"finished_at" description:"完成时间"`
}