2026-05-06 16:19:22 +08:00
|
|
|
package tencent
|
|
|
|
|
|
|
|
|
|
import (
|
|
|
|
|
"gitea.com/red-future/common/beans"
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
// Image 腾讯广告图片素材实体
|
|
|
|
|
type Image struct {
|
|
|
|
|
beans.SQLBaseDO `orm:",inherit"`
|
|
|
|
|
|
|
|
|
|
ImageId string `orm:"image_id" json:"imageId" description:"图片ID"`
|
|
|
|
|
AccountId int64 `orm:"account_id" json:"accountId" description:"账户ID"`
|
|
|
|
|
Width int `orm:"width" json:"width" description:"宽度"`
|
|
|
|
|
Height int `orm:"height" json:"height" description:"高度"`
|
|
|
|
|
FileSize int64 `orm:"file_size" json:"fileSize" description:"文件大小"`
|
|
|
|
|
Type string `orm:"type" json:"type" description:"图片类型"`
|
|
|
|
|
Signature string `orm:"signature" json:"signature" description:"签名"`
|
|
|
|
|
Description string `orm:"description" json:"description" description:"描述"`
|
|
|
|
|
SourceSignature string `orm:"source_signature" json:"sourceSignature" description:"源签名"`
|
|
|
|
|
PreviewUrl string `orm:"preview_url" json:"previewUrl" description:"预览URL"`
|
|
|
|
|
ThumbPreviewUrl string `orm:"thumb_preview_url" json:"thumbPreviewUrl" description:"缩略图URL"`
|
|
|
|
|
SourceType string `orm:"source_type" json:"sourceType" description:"来源类型"`
|
|
|
|
|
ImageUsage string `orm:"image_usage" json:"imageUsage" description:"图片用途"`
|
|
|
|
|
CreatedTime int64 `orm:"created_time" json:"createdTime" description:"创建时间戳"`
|
|
|
|
|
LastModifiedTime int64 `orm:"last_modified_time" json:"lastModifiedTime" description:"最后修改时间戳"`
|
|
|
|
|
ProductCatalogId int64 `orm:"product_catalog_id" json:"productCatalogId" description:"产品目录ID"`
|
|
|
|
|
ProductOuterId string `orm:"product_outer_id" json:"productOuterId" description:"产品外部ID"`
|
|
|
|
|
SourceReferenceId string `orm:"source_reference_id" json:"sourceReferenceId" description:"源引用ID"`
|
|
|
|
|
OwnerAccountId string `orm:"owner_account_id" json:"ownerAccountId" description:"所有者账户ID"`
|
|
|
|
|
Status string `orm:"status" json:"status" description:"状态"`
|
|
|
|
|
SampleAspectRatio string `orm:"sample_aspect_ratio" json:"sampleAspectRatio" description:"示例宽高比"`
|
|
|
|
|
SourceMaterialId string `orm:"source_material_id" json:"sourceMaterialId" description:"源素材ID"`
|
|
|
|
|
NewSourceType string `orm:"new_source_type" json:"newSourceType" description:"新来源类型"`
|
|
|
|
|
FirstPublicationStatus string `orm:"first_publication_status" json:"firstPublicationStatus" description:"首次发布状态"`
|
|
|
|
|
QualityStatus string `orm:"quality_status" json:"qualityStatus" description:"质量状态"`
|
|
|
|
|
SimilarityStatus string `orm:"similarity_status" json:"similarityStatus" description:"相似度状态"`
|
|
|
|
|
UserAigcStatus string `orm:"user_aigc_status" json:"userAigcStatus" description:"用户AIGC状态"`
|
|
|
|
|
SystemAigcStatus string `orm:"system_aigc_status" json:"systemAigcStatus" description:"系统AIGC状态"`
|
|
|
|
|
AigcSource string `orm:"aigc_source" json:"aigcSource" description:"AIGC来源"`
|
|
|
|
|
AigcFlag string `orm:"aigc_flag" json:"aigcFlag" description:"AIGC标志"`
|
|
|
|
|
MuseAigcVersion int `orm:"muse_aigc_version" json:"museAigcVersion" description:"Muse AIGC版本"`
|
|
|
|
|
AigcType int `orm:"aigc_type" json:"aigcType" description:"AIGC类型"`
|
2026-05-07 09:07:20 +08:00
|
|
|
|
|
|
|
|
// 本地校验状态
|
|
|
|
|
VerifyStatus string `orm:"verify_status" json:"verifyStatus" description:"校验状态(PENDING:待校验, VERIFIED:已校验, REJECTED:已拒绝)"`
|
|
|
|
|
VerifiedAt string `orm:"verified_at" json:"verifiedAt" description:"校验时间"`
|
|
|
|
|
VerifiedBy string `orm:"verified_by" json:"verifiedBy" description:"校验人"`
|
2026-05-06 16:19:22 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// ImageCol 图片素材表字段定义
|
|
|
|
|
type ImageCol struct {
|
|
|
|
|
beans.SQLBaseCol
|
|
|
|
|
ImageId string
|
|
|
|
|
AccountId string
|
|
|
|
|
Width string
|
|
|
|
|
Height string
|
|
|
|
|
FileSize string
|
|
|
|
|
Type string
|
|
|
|
|
Signature string
|
|
|
|
|
Description string
|
|
|
|
|
SourceSignature string
|
|
|
|
|
PreviewUrl string
|
|
|
|
|
ThumbPreviewUrl string
|
|
|
|
|
SourceType string
|
|
|
|
|
ImageUsage string
|
|
|
|
|
CreatedTime string
|
|
|
|
|
LastModifiedTime string
|
|
|
|
|
ProductCatalogId string
|
|
|
|
|
ProductOuterId string
|
|
|
|
|
SourceReferenceId string
|
|
|
|
|
OwnerAccountId string
|
|
|
|
|
Status string
|
|
|
|
|
SampleAspectRatio string
|
|
|
|
|
SourceMaterialId string
|
|
|
|
|
NewSourceType string
|
|
|
|
|
FirstPublicationStatus string
|
|
|
|
|
QualityStatus string
|
|
|
|
|
SimilarityStatus string
|
|
|
|
|
UserAigcStatus string
|
|
|
|
|
SystemAigcStatus string
|
|
|
|
|
AigcSource string
|
|
|
|
|
AigcFlag string
|
|
|
|
|
MuseAigcVersion string
|
|
|
|
|
AigcType string
|
2026-05-07 09:07:20 +08:00
|
|
|
VerifyStatus string
|
|
|
|
|
VerifiedAt string
|
|
|
|
|
VerifiedBy string
|
2026-05-06 16:19:22 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// ImageCols 图片素材表字段常量
|
|
|
|
|
var ImageCols = ImageCol{
|
|
|
|
|
SQLBaseCol: beans.DefSQLBaseCol,
|
|
|
|
|
ImageId: "image_id",
|
|
|
|
|
AccountId: "account_id",
|
|
|
|
|
Width: "width",
|
|
|
|
|
Height: "height",
|
|
|
|
|
FileSize: "file_size",
|
|
|
|
|
Type: "type",
|
|
|
|
|
Signature: "signature",
|
|
|
|
|
Description: "description",
|
|
|
|
|
SourceSignature: "source_signature",
|
|
|
|
|
PreviewUrl: "preview_url",
|
|
|
|
|
ThumbPreviewUrl: "thumb_preview_url",
|
|
|
|
|
SourceType: "source_type",
|
|
|
|
|
ImageUsage: "image_usage",
|
|
|
|
|
CreatedTime: "created_time",
|
|
|
|
|
LastModifiedTime: "last_modified_time",
|
|
|
|
|
ProductCatalogId: "product_catalog_id",
|
|
|
|
|
ProductOuterId: "product_outer_id",
|
|
|
|
|
SourceReferenceId: "source_reference_id",
|
|
|
|
|
OwnerAccountId: "owner_account_id",
|
|
|
|
|
Status: "status",
|
|
|
|
|
SampleAspectRatio: "sample_aspect_ratio",
|
|
|
|
|
SourceMaterialId: "source_material_id",
|
|
|
|
|
NewSourceType: "new_source_type",
|
|
|
|
|
FirstPublicationStatus: "first_publication_status",
|
|
|
|
|
QualityStatus: "quality_status",
|
|
|
|
|
SimilarityStatus: "similarity_status",
|
|
|
|
|
UserAigcStatus: "user_aigc_status",
|
|
|
|
|
SystemAigcStatus: "system_aigc_status",
|
|
|
|
|
AigcSource: "aigc_source",
|
|
|
|
|
AigcFlag: "aigc_flag",
|
|
|
|
|
MuseAigcVersion: "muse_aigc_version",
|
|
|
|
|
AigcType: "aigc_type",
|
2026-05-07 09:07:20 +08:00
|
|
|
VerifyStatus: "verify_status",
|
|
|
|
|
VerifiedAt: "verified_at",
|
|
|
|
|
VerifiedBy: "verified_by",
|
2026-05-06 16:19:22 +08:00
|
|
|
}
|