modify app to atom
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
package config
|
||||
|
||||
import (
|
||||
"app/container"
|
||||
"app/utils"
|
||||
"atom/container"
|
||||
"atom/utils"
|
||||
"log"
|
||||
"os"
|
||||
"strings"
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
package config
|
||||
|
||||
import "app/utils"
|
||||
import "atom/utils"
|
||||
|
||||
type App struct {
|
||||
Mode string
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
package http
|
||||
|
||||
import (
|
||||
"app/container"
|
||||
"app/providers/config"
|
||||
"app/providers/logger"
|
||||
"atom/container"
|
||||
"atom/providers/config"
|
||||
"atom/providers/logger"
|
||||
"fmt"
|
||||
"log"
|
||||
"time"
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
package logger
|
||||
|
||||
import (
|
||||
"app/container"
|
||||
"app/providers/config"
|
||||
"atom/container"
|
||||
"atom/providers/config"
|
||||
"log"
|
||||
"strings"
|
||||
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
package micro
|
||||
|
||||
import (
|
||||
"app/container"
|
||||
"app/providers/config"
|
||||
"app/utils"
|
||||
"atom/container"
|
||||
"atom/providers/config"
|
||||
"atom/utils"
|
||||
"log"
|
||||
|
||||
mgrpc "github.com/go-micro/plugins/v4/client/grpc"
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
package mysql
|
||||
|
||||
import (
|
||||
"app/container"
|
||||
"atom/container"
|
||||
|
||||
"gorm.io/gorm"
|
||||
)
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
package providers
|
||||
|
||||
import (
|
||||
_ "app/providers/config"
|
||||
_ "app/providers/http"
|
||||
_ "app/providers/logger"
|
||||
_ "app/providers/micro"
|
||||
_ "app/providers/mysql"
|
||||
_ "atom/providers/config"
|
||||
_ "atom/providers/http"
|
||||
_ "atom/providers/logger"
|
||||
_ "atom/providers/micro"
|
||||
_ "atom/providers/mysql"
|
||||
)
|
||||
|
||||
@@ -3,8 +3,8 @@ package rpc
|
||||
import (
|
||||
"log"
|
||||
|
||||
"app/container"
|
||||
"app/proto"
|
||||
"atom/container"
|
||||
"atom/proto"
|
||||
|
||||
"go-micro.dev/v4"
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user