modify app to atom

This commit is contained in:
yanghao05
2023-01-28 11:11:12 +08:00
parent 19562329ed
commit be06e1f1e3
19 changed files with 53 additions and 53 deletions

View File

@@ -1,11 +1,11 @@
package container
import (
"app/container"
"app/modules/system/controller"
"app/modules/system/dao"
"app/modules/system/routes"
"app/modules/system/service"
"atom/container"
"atom/modules/system/controller"
"atom/modules/system/dao"
"atom/modules/system/routes"
"atom/modules/system/service"
"log"
"go.uber.org/dig"

View File

@@ -1,10 +1,10 @@
package controller
import (
"app/modules/system/dao"
"app/modules/system/dto"
"app/modules/system/service"
"app/providers/config"
"atom/modules/system/dao"
"atom/modules/system/dto"
"atom/modules/system/service"
"atom/providers/config"
"github.com/gin-gonic/gin"
)

View File

@@ -1,7 +1,7 @@
package dao
import (
"app/providers/config"
"atom/providers/config"
"context"
"errors"

View File

@@ -1,9 +1,9 @@
package routes
import (
"app/contracts"
"app/modules/system/controller"
"app/providers/http"
"atom/contracts"
"atom/modules/system/controller"
"atom/providers/http"
"github.com/rogeecn/gen"
)

View File

@@ -1,8 +1,8 @@
package service
import (
"app/modules/system/dao"
"app/modules/system/dto"
"atom/modules/system/dao"
"atom/modules/system/dto"
"context"
)

View File

@@ -1,16 +1,16 @@
package system
import (
"app/container"
"atom/container"
"context"
"fmt"
"testing"
_ "app/providers/config" // 这里的依赖需要被导入,否则会报错
_ "app/providers/logger"
_ "app/providers/mysql"
_ "app/web/system/container"
"app/web/system/service"
_ "atom/modules/system/container"
"atom/modules/system/service"
_ "atom/providers/config" // 这里的依赖需要被导入,否则会报错
_ "atom/providers/logger"
_ "atom/providers/mysql"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/suite"
@@ -45,7 +45,7 @@ func (s *TServiceSuite) Test_GetName() {
assert.Equal(s.T(), "System.GetName", name.Name)
}
//////
// ////
func (s *TServiceSuite) SetupSuite() {
fmt.Println("SetupSuite")
}