Files
ai-agent/digital-human/model/entity/async_task_ref.go
2026-06-10 15:29:21 +08:00

38 lines
1.0 KiB
Go
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
package entity
import (
"gitea.redpowerfuture.com/red-future/common/beans"
)
type asyncTaskRefCol struct {
beans.SQLBaseCol
TaskID string
State string
TableName string
BizID string
OssFile string
ErrorMsg string
}
var AsyncTaskRefCol = asyncTaskRefCol{
SQLBaseCol: beans.DefSQLBaseCol,
TaskID: "task_id",
State: "state",
TableName: "table_name",
BizID: "biz_id",
OssFile: "oss_file",
ErrorMsg: "error_msg",
}
// AsyncTaskRef 异步任务绑定记录(中间件 task_id 绑定业务表)
// - state: 保存中间件返回的任务状态0排队中/1执行中/2成功/3失败/4已下载
type AsyncTaskRef struct {
beans.SQLBaseDO `orm:",inline"`
TaskID string `orm:"task_id" json:"taskId"`
State int `orm:"state" json:"state"`
TableName string `orm:"table_name" json:"tableName"`
BizID int64 `orm:"biz_id" json:"bizId,string"`
OssFile string `orm:"oss_file" json:"ossFile"`
ErrorMsg string `orm:"error_msg" json:"errorMsg"`
}