提取公共包

master
shenzhuan 2 years ago
parent 11ab235641
commit 9a7235f41d

@ -14,10 +14,10 @@ import (
"go-micro.dev/v4/web" "go-micro.dev/v4/web"
//"goproduct/common" //"goproduct/common"
common "git.mashibing.com/msb_47094/shopping-comm" common "git.mashibing.com/msb_47094/shopping-comm"
"goproduct/proto"
"log" "log"
"net" "net"
"net/http" "net/http"
"shoppingCart/proto"
"strconv" "strconv"
"github.com/gin-gonic/gin" "github.com/gin-gonic/gin"

@ -2,8 +2,8 @@ package repository
import ( import (
"fmt" "fmt"
"goproduct/domain/model" "shoppingCart/domain/model"
"goproduct/proto" "shoppingCart/proto"
"time" "time"
"gorm.io/gorm" "gorm.io/gorm"

@ -1,9 +1,9 @@
package service package service
import ( import (
"goproduct/domain/model" "shoppingCart/domain/model"
"goproduct/domain/repository" "shoppingCart/domain/repository"
"goproduct/proto" "shoppingCart/proto"
) )
type ICartService interface { type ICartService interface {

@ -3,8 +3,8 @@ package handler
import ( import (
"context" "context"
"fmt" "fmt"
"goproduct/domain/service" "shoppingCart/domain/service"
"goproduct/proto" "shoppingCart/proto"
) )
type CartHandler struct { type CartHandler struct {

@ -8,11 +8,11 @@ import (
"github.com/opentracing/opentracing-go" "github.com/opentracing/opentracing-go"
"go-micro.dev/v4" "go-micro.dev/v4"
"go-micro.dev/v4/registry" "go-micro.dev/v4/registry"
"goproduct/domain/repository"
"goproduct/domain/service"
"goproduct/handler"
"goproduct/proto"
"log" "log"
"shoppingCart/domain/repository"
"shoppingCart/domain/service"
"shoppingCart/handler"
"shoppingCart/proto"
"time" "time"
) )

Loading…
Cancel
Save