Skip to content

Commit

Permalink
chore(project): update file references
Browse files Browse the repository at this point in the history
- Update import paths for new file structure #1
  • Loading branch information
lc-1010 committed Jun 21, 2023
1 parent ae4c8cd commit 95fb470
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
5 changes: 3 additions & 2 deletions internal/model/model.go
Original file line number Diff line number Diff line change
@@ -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"
Expand Down
1 change: 1 addition & 0 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 95fb470

Please sign in to comment.