From 95fb470955b74f1d9da2e4a98a406a7f1cfbc83a Mon Sep 17 00:00:00 2001 From: lc-1010 <532398960@qq.com> Date: Wed, 21 Jun 2023 11:27:01 +0800 Subject: [PATCH] chore(project): update file references - Update import paths for new file structure #1 --- internal/model/model.go | 5 +++-- main.go | 1 + 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/internal/model/model.go b/internal/model/model.go index c513cf7..017d8b5 100644 --- a/internal/model/model.go +++ b/internal/model/model.go @@ -1,10 +1,11 @@ package model import ( - "blog-server/global" - "blog-server/pkg/setting" "fmt" + "github.com/lc-1010/OneBlogService/global" + "github.com/lc-1010/OneBlogService/pkg/setting" + "gorm.io/driver/mysql" "gorm.io/gorm" "gorm.io/gorm/logger" diff --git a/main.go b/main.go index 092c2e8..0737086 100644 --- a/main.go +++ b/main.go @@ -73,6 +73,7 @@ func setupSetting() error { func setupDBEngine() error { var err error // use = 设置启动,不能用:= 因为其他包调用时是会是nil + global.DBEngine, err = model.NewDBEngine(global.DatabaseSetting) if err != nil { return err