Commit 85ddf52f by mushishixian

修改名称

parent 792cad52
......@@ -5,8 +5,8 @@ import (
"github.com/gin-gonic/gin"
"github.com/ichunt2019/cfg/lib"
xlog "github.com/ichunt2019/lxLog/log"
common "go-supplier-sync/app/common/function"
"go-supplier-sync/app/service"
common "go_supplier_sever/app/common/function"
"go_supplier_sever/app/service"
)
func Ping(ctx *gin.Context) {
......
......@@ -4,7 +4,7 @@ import (
"github.com/go-redis/redis/v7"
_ "github.com/go-sql-driver/mysql"
"github.com/ichunt2019/cfg/lib"
"go-supplier-sync/app/common/config"
"go_supplier_sever/app/common/config"
"time"
"xorm.io/xorm"
......
package dao
import (
"go-supplier-sync/app/model"
"go_supplier_sever/app/model"
"time"
)
......
......@@ -5,7 +5,7 @@ import (
"github.com/ichunt2019/cfg/lib"
"github.com/ichunt2019/go-rabbitmq/utils/rabbitmq"
"github.com/tidwall/gjson"
"go-supplier-sync/app/service"
"go_supplier_sever/app/service"
)
type RecvPro struct {
......
package service
import "go-supplier-sync/app/dao"
import "go_supplier_sever/app/dao"
func GetData(){
dao.GetUser()
......
package service
import "go-supplier-sync/app/dao"
import "go_supplier_sever/app/dao"
func AddSupplierSync(supplierCode, erpSupplierCode, erpSupplierName string) (err error) {
return dao.AddSupplierSync(supplierCode, erpSupplierCode, erpSupplierName)
......
......@@ -3,7 +3,7 @@ package boot
import (
"github.com/ichunt2019/cfg/lib"
xlog "github.com/ichunt2019/lxLog/log"
"go-supplier-sync/app/dao"
"go_supplier_sever/app/dao"
)
func Init(configPath string, logPath string) (err error) {
......
......@@ -2,8 +2,8 @@ package main
import (
"flag"
"go-supplier-sync/app/queue"
"go-supplier-sync/boot"
"go_supplier_sever/app/queue"
"go_supplier_sever/boot"
)
var (
configPath string
......
#服务注册名称
micro_service_name = "go-supplier-sync"
micro_service_name = "go_supplier_sever"
#etcd配置信息 etcd服务的ip端口用户密码
[etcd_config]
......
module go-supplier-sync
module go_supplier_sever
go 1.14
......
......@@ -4,8 +4,8 @@ import (
"errors"
"fmt"
"github.com/gin-gonic/gin"
common "go-supplier-sync/app/common/function"
"go-supplier-sync/util"
common "go_supplier_sever/app/common/function"
"go_supplier_sever/util"
"github.com/ichunt2019/cfg/lib"
"runtime/debug"
)
......
......@@ -3,8 +3,8 @@ package middleware
import (
"bytes"
"github.com/gin-gonic/gin"
"go-supplier-sync/util"
"go-supplier-sync/util/lib"
"go_supplier_sever/util"
"go_supplier_sever/util/lib"
"io/ioutil"
"time"
)
......
......@@ -3,7 +3,7 @@ package middleware
import (
"encoding/json"
"fmt"
"go-supplier-sync/util/lib"
"go_supplier_sever/util/lib"
"github.com/gin-gonic/gin"
"strings"
)
......
......@@ -4,7 +4,7 @@ import (
"context"
"github.com/gin-gonic/gin"
cfg "github.com/ichunt2019/cfg/lib"
"go-supplier-sync/middleware"
"go_supplier_sever/middleware"
"log"
"net/http"
"time"
......
......@@ -2,7 +2,7 @@ package router
import (
"github.com/gin-gonic/gin"
"go-supplier-sync/app/controller"
"go_supplier_sever/app/controller"
)
func InitRouter(middlewares ...gin.HandlerFunc) *gin.Engine {
......
......@@ -3,7 +3,7 @@ package lib
import (
_ "github.com/go-sql-driver/mysql"
"github.com/ichunt2019/cfg/lib"
"go-supplier-sync/app/common/config"
"go_supplier_sever/app/common/config"
"xorm.io/xorm"
)
......
......@@ -3,7 +3,7 @@ package util
import (
"context"
"go-supplier-sync/util/lib"
"go_supplier_sever/util/lib"
"github.com/gin-gonic/gin"
)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment