package dataengine import ( "gitea.redpowerfuture.com/red-future/common/beans" ) // MaterialVerifyLog 素材校验日志实体 type MaterialVerifyLog struct { beans.SQLBaseDO `orm:",inherit"` // 业务字段 TenantID int64 `orm:"tenant_id" json:"tenantId" description:"租户ID"` MaterialType string `orm:"material_type" json:"materialType" description:"素材类型 IMAGE/VIDEO"` MaterialID string `orm:"material_id" json:"materialId" description:"素材ID"` SourceTable string `orm:"source_table" json:"sourceTable" description:"来源表"` SourceID int64 `orm:"source_id" json:"sourceId" description:"原表主键ID"` AccountID int64 `orm:"account_id" json:"accountId" description:"账户ID"` TaskID string `orm:"task_id" json:"taskId" description:"易盾任务ID"` RequestParams string `orm:"request_params" json:"requestParams" description:"请求入参"` ResponseResult string `orm:"response_result" json:"responseResult" description:"响应出参"` VerifyStatus string `orm:"verify_status" json:"verifyStatus" description:"校验状态"` Suggestion int `orm:"suggestion" json:"suggestion" description:"处置建议"` Label int `orm:"label" json:"label" description:"垃圾类型"` ResultType int `orm:"result_type" json:"resultType" description:"结果类型"` ErrorMsg string `orm:"error_msg" json:"errorMsg" description:"错误信息"` CheckTime int64 `orm:"check_time" json:"checkTime" description:"审核时间戳"` DurationMs int64 `orm:"duration_ms" json:"durationMs" description:"处理耗时(毫秒)"` // 扩展字段(用于展示) PreviewURL string `orm:"-" json:"previewUrl" description:"预览URL"` } // MaterialVerifyLogCol 日志表字段定义 type MaterialVerifyLogCol struct { beans.SQLBaseCol TenantID string MaterialType string MaterialID string SourceTable string SourceID string AccountID string TaskID string RequestParams string ResponseResult string VerifyStatus string Suggestion string Label string ResultType string ErrorMsg string CheckTime string DurationMs string } // MaterialVerifyLogCols 日志表字段常量 var MaterialVerifyLogCols = MaterialVerifyLogCol{ SQLBaseCol: beans.DefSQLBaseCol, TenantID: "tenant_id", MaterialType: "material_type", MaterialID: "material_id", SourceTable: "source_table", SourceID: "source_id", AccountID: "account_id", TaskID: "task_id", RequestParams: "request_params", ResponseResult: "response_result", VerifyStatus: "verify_status", Suggestion: "suggestion", Label: "label", ResultType: "result_type", ErrorMsg: "error_msg", CheckTime: "check_time", DurationMs: "duration_ms", } // 素材类型常量 const ( MaterialTypeImage = "IMAGE" MaterialTypeVideo = "VIDEO" ) // 校验状态常量 const ( VerifyStatusPending = "PENDING" // 待校验 VerifyStatusVerified = "VERIFIED" // 校验通过 VerifyStatusRejected = "REJECTED" // 校验不通过 )