Files
cid/model/entity/check/tencent_content_check_log.go
2026-08-25 10:14:32 +08:00

63 lines
2.6 KiB
Go
Raw Permalink 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 check
import (
"gitea.redpowerfuture.com/red-future/common/beans"
)
// TencentContentCheckLog 送检日志实体(来源:data-engine.tencent_content_check_log
type TencentContentCheckLog struct {
beans.SQLBaseDO `orm:",inherit"`
// 来源标识
SourceTable string `orm:"source_table" json:"sourceTable" description:"来源表标识:tencent_image/tencent_video"`
SourceID int64 `orm:"source_id" json:"sourceId" description:"原数据ID(关联业务表数据)"`
// 送检信息
RequestURL string `orm:"request_url" json:"requestUrl" description:"送检请求路径(接口地址)"`
RequestParam string `orm:"request_param" json:"requestParam" description:"送检入参(完整请求参数,JSON格式)"`
ResponseData string `orm:"response_data" json:"responseData" description:"送检出参(完整接口返回结果,JSON格式)"`
Status string `orm:"status" json:"status" description:"送检状态:pending-待送检, submitting-送检中, success-送检成功, failed-送检失败"`
CheckTime int64 `orm:"check_time" json:"checkTime" description:"送检时间(时间戳,毫秒)"`
FailReason string `orm:"fail_reason" json:"failReason" description:"失败原因(可选,记录接口报错信息)"`
TaskID string `orm:"task_id" json:"taskId" description:"易盾返回的任务ID"`
// 检测结果
Suggestion int `orm:"suggestion" json:"suggestion" description:"检测结果建议:0-通过,1-嫌疑,2-不通过"`
Label int `orm:"label" json:"label" description:"检测标签"`
ResultType int `orm:"result_type" json:"resultType" description:"结果类型:1-机器结果,2-人审结果"`
Duration int64 `orm:"duration" json:"duration" description:"送检耗时(毫秒)"`
}
// TencentContentCheckLogCol 送检日志表字段定义
type TencentContentCheckLogCol struct {
beans.SQLBaseCol
SourceTable string
SourceID string
RequestURL string
RequestParam string
ResponseData string
Status string
CheckTime string
FailReason string
TaskID string
Suggestion string
Label string
ResultType string
Duration string
}
// TencentContentCheckLogCols 送检日志表字段常量
var TencentContentCheckLogCols = TencentContentCheckLogCol{
SQLBaseCol: beans.DefSQLBaseCol,
SourceTable: "source_table",
SourceID: "source_id",
RequestURL: "request_url",
RequestParam: "request_param",
ResponseData: "response_data",
Status: "status",
CheckTime: "check_time",
FailReason: "fail_reason",
TaskID: "task_id",
Suggestion: "suggestion",
Label: "label",
ResultType: "result_type",
Duration: "duration",
}