modify app to atom
This commit is contained in:
@@ -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"
|
||||
|
||||
@@ -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"
|
||||
)
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
package dao
|
||||
|
||||
import (
|
||||
"app/providers/config"
|
||||
"atom/providers/config"
|
||||
"context"
|
||||
"errors"
|
||||
|
||||
|
||||
@@ -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"
|
||||
)
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
package service
|
||||
|
||||
import (
|
||||
"app/modules/system/dao"
|
||||
"app/modules/system/dto"
|
||||
"atom/modules/system/dao"
|
||||
"atom/modules/system/dto"
|
||||
"context"
|
||||
)
|
||||
|
||||
|
||||
@@ -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")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user