同步音频和图片
This commit is contained in:
62
model/entity/tencent/audio.go
Normal file
62
model/entity/tencent/audio.go
Normal file
@@ -0,0 +1,62 @@
|
||||
package tencent
|
||||
|
||||
import (
|
||||
"time"
|
||||
)
|
||||
|
||||
// Audio 腾讯广告音乐素材实体
|
||||
type Audio struct {
|
||||
Id int64 `orm:"id" json:"id" description:"主键ID"`
|
||||
TenantId int64 `orm:"tenant_id" json:"tenantId" description:"租户ID"`
|
||||
Creator string `orm:"creator" json:"creator" description:"创建人"`
|
||||
CreatedAt *time.Time `orm:"created_at" json:"createdAt" description:"创建时间"`
|
||||
Updater string `orm:"updater" json:"updater" description:"更新人"`
|
||||
UpdatedAt *time.Time `orm:"updated_at" json:"updatedAt" description:"更新时间"`
|
||||
DeletedAt *time.Time `orm:"deleted_at" json:"deletedAt" description:"软删除时间"`
|
||||
AudioId string `orm:"audio_id" json:"audioId" description:"音乐ID"`
|
||||
CoverImageUrl string `orm:"cover_image_url" json:"coverImageUrl" description:"封面图片URL"`
|
||||
AudioName string `orm:"audio_name" json:"audioName" description:"音乐名称"`
|
||||
Author string `orm:"author" json:"author" description:"作者"`
|
||||
Duration float64 `orm:"duration" json:"duration" description:"时长(秒)"`
|
||||
ExpireTime int64 `orm:"expire_time" json:"expireTime" description:"过期时间戳"`
|
||||
FeelTags string `orm:"feel_tags" json:"feelTags" description:"情感标签数组JSON"`
|
||||
GenreTags string `orm:"genre_tags" json:"genreTags" description:"风格标签数组JSON"`
|
||||
}
|
||||
|
||||
// AudioCol 音乐素材表字段定义
|
||||
type AudioCol struct {
|
||||
Id string
|
||||
TenantId string
|
||||
Creator string
|
||||
CreatedAt string
|
||||
Updater string
|
||||
UpdatedAt string
|
||||
DeletedAt string
|
||||
AudioId string
|
||||
CoverImageUrl string
|
||||
AudioName string
|
||||
Author string
|
||||
Duration string
|
||||
ExpireTime string
|
||||
FeelTags string
|
||||
GenreTags string
|
||||
}
|
||||
|
||||
// AudioCols 音乐素材表字段常量
|
||||
var AudioCols = AudioCol{
|
||||
Id: "id",
|
||||
TenantId: "tenant_id",
|
||||
Creator: "creator",
|
||||
CreatedAt: "created_at",
|
||||
Updater: "updater",
|
||||
UpdatedAt: "updated_at",
|
||||
DeletedAt: "deleted_at",
|
||||
AudioId: "audio_id",
|
||||
CoverImageUrl: "cover_image_url",
|
||||
AudioName: "audio_name",
|
||||
Author: "author",
|
||||
Duration: "duration",
|
||||
ExpireTime: "expire_time",
|
||||
FeelTags: "feel_tags",
|
||||
GenreTags: "genre_tags",
|
||||
}
|
||||
Reference in New Issue
Block a user