增加日志

This commit is contained in:
2025-10-04 01:02:40 +08:00
parent 1bc36f5e10
commit 5403be5e7d
2 changed files with 10 additions and 8 deletions

View File

@@ -75,7 +75,7 @@ func NewApplication(configPath string) (*Application, error) {
pigBatchRepo := repository.NewGormPigBatchRepository(storage.GetDB())
// 初始化事务管理器
unitOfWork := repository.NewGormUnitOfWork(storage.GetDB())
unitOfWork := repository.NewGormUnitOfWork(storage.GetDB(), logger)
// --- 业务逻辑处理器初始化 ---
pigFarmService := service.NewPigFarmService(pigFarmRepo, logger)