23 lines
965 B
Go
23 lines
965 B
Go
package plant
|
|
|
|
import (
|
|
"sundynix-go/global"
|
|
)
|
|
|
|
// MediaCheckResult 媒体安全检测结果
|
|
// 对应微信 media_check_async 接口的返回结果
|
|
type MediaCheckResult struct {
|
|
global.BaseModel
|
|
TraceId string `json:"traceId" gorm:"column:trace_id;size:100;uniqueIndex;comment:微信返回的唯一任务id"`
|
|
PostId string `json:"postId" gorm:"column:post_id;size:50;index;comment:关联的帖子id"`
|
|
OssId string `json:"ossId" gorm:"column:oss_id;size:50;comment:关联的oss文件id"`
|
|
UserId string `json:"userId" gorm:"column:user_id;size:50;comment:提交检测的用户id"`
|
|
Status int `json:"status" gorm:"column:status;default:0;comment:检测状态 0:检测中 1:通过 2:违规"`
|
|
Type int `json:"type" gorm:"column:type;comment:媒体类型 1:音频 2:图片"`
|
|
ErrMsg string `json:"errMsg" gorm:"column:err_msg;size:255;comment:错误信息"`
|
|
}
|
|
|
|
func (MediaCheckResult) TableName() string {
|
|
return "sundynix_media_check_result"
|
|
}
|