feat:时间线MQ发送端和消费端

This commit is contained in:
Amnesia
2026-03-13 16:07:34 +08:00
parent 7be6e8bdb5
commit 0ef79f54cb
3 changed files with 98 additions and 1 deletions

View File

@@ -24,7 +24,7 @@ func NewDB(dbcfg config.DatabaseConfig) (*gorm.DB, error) {
}
func AutoMigrate(db *gorm.DB) error {
return db.AutoMigrate(&account.Account{}, &video.Video{}, &video.Like{}, &video.Comment{}, &social.Social{})
return db.AutoMigrate(&account.Account{}, &video.Video{}, &video.Like{}, &video.Comment{}, &social.Social{}, &video.OutboxMsg{})
}
func CloseDB(db *gorm.DB) error {