feat: add some new features

This commit is contained in:
Rogee
2025-01-16 09:28:53 +08:00
parent dbe1e19be2
commit 7d894ab0e0
6 changed files with 132 additions and 130 deletions

View File

@@ -72,7 +72,7 @@ func (e *PostCreated) Handler(msg *message.Message) ([]*message.Message, error)
}
// cut video
_, err = job.Insert(context.Background(), jobs.VideoCut{
_, err = job.Insert(context.Background(), jobs.PostVideoCutJob{
PostID: post.ID,
Hash: video.Hash,
TenantID: post.TenantID,
@@ -83,7 +83,7 @@ func (e *PostCreated) Handler(msg *message.Message) ([]*message.Message, error)
}
// extract audio
_, err = job.Insert(context.Background(), jobs.VideoExtractAudio{
_, err = job.Insert(context.Background(), jobs.PostVideoExtractAudioJob{
PostID: post.ID,
Hash: video.Hash,
TenantID: post.TenantID,