package entity import ( "gitea.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"` }