// Code generated by gowebx, DO AVOID EDIT. package audioencode import ( "git.lnton.com/lnton/pkg/orm" "time" ) type EncodeStatus int const ( EncodeStatusEmpty EncodeStatus = iota EncodeStatusSuccess EncodeStatusPing EncodeStatusFailed ) type AudioEncode struct { orm.Model Name string `gorm:"column:name;notNull;default:'';comment:名称" json:"name"` // 名称 FileName string `gorm:"column:file_name;notNull;default:'';comment:文件名称" json:"file_name"` // 文件名称 SourceUrl string `gorm:"column:source_url;notNull;default:'';comment:原始地址" json:"source_url"` // 原始地址 EncodeUrl string `gorm:"column:encode_url;notNull;default:'';comment:转码地址" json:"encode_url"` // 转码地址 EncodeStatus EncodeStatus `gorm:"column:encode_status;notNull;default:0;comment:转码状态" json:"encode_status"` // 转码状态 Mode string `gorm:"column:mode;notNull;default:'';comment:文件类型" json:"mode"` // 文件类型 mp3 wav Size int64 `gorm:"column:size;notNull;default:0;comment:文件大小" json:"size"` // 文件大小 Duration int64 `gorm:"column:duration;notNull;default:0;comment:文件时长" json:"duration"` // 文件时长 Des string `gorm:"column:des;notNull;default:'';comment:描述" json:"des"` // 描述 } // TableName database table name func (*AudioEncode) TableName() string { return "audio_encode" } type AudioTask struct { orm.Model AudioID int `gorm:"column:audio_id;notNull;default:0;comment:关联音频" json:"audio_id"` // 关联音频 ChannelID string `gorm:"column:channel_id;notNull;default:'';comment:关联通道" json:"channel_id"` // 关联通道 ChannelName string `gorm:"column:channel_name;notNull;default:'';comment:关联通道名称" json:"channel_name"` // 关联通道名称 AudioName string `gorm:"column:audio_name;notNull;default:'';comment:音频名称" json:"audio_name"` // 音频名称 Mode string `gorm:"column:mode;notNull;default:'';comment:文件类型" json:"mode"` // 文件类型 mp3 wav Size int64 `gorm:"column:size;notNull;default:0;comment:文件大小" json:"size"` // 文件大小 Duration int64 `gorm:"column:duration;notNull;default:0;comment:文件时长" json:"duration"` // 文件时长 TaskStatus int `gorm:"column:task_status;notNull;default:0;comment:任务状态" json:"task_status"` // 任务状态 CreateTime time.Time `gorm:"notNull;default:CURRENT_TIMESTAMP;index;comment:创建时间" json:"created_time"` // 任务创建时间 StartTime time.Time `gorm:"notNull;default:CURRENT_TIMESTAMP;index;comment:开始时间" json:"start_time"` // 任务开始时间 EndTime time.Time `gorm:"notNull;default:CURRENT_TIMESTAMP;index;comment:结束时间" json:"end_time"` // 任务结束时间 ErrorMsg string `gorm:"column:error_msg;notNull;default:'';comment:错误信息" json:"error_msg"` // 错误信息 } // TableName database table name func (*AudioTask) TableName() string { return "audio_task" }