Commit 85ddf52f by mushishixian

修改名称

parent 792cad52
...@@ -5,8 +5,8 @@ import ( ...@@ -5,8 +5,8 @@ import (
"github.com/gin-gonic/gin" "github.com/gin-gonic/gin"
"github.com/ichunt2019/cfg/lib" "github.com/ichunt2019/cfg/lib"
xlog "github.com/ichunt2019/lxLog/log" xlog "github.com/ichunt2019/lxLog/log"
common "go-supplier-sync/app/common/function" common "go_supplier_sever/app/common/function"
"go-supplier-sync/app/service" "go_supplier_sever/app/service"
) )
func Ping(ctx *gin.Context) { func Ping(ctx *gin.Context) {
......
...@@ -4,7 +4,7 @@ import ( ...@@ -4,7 +4,7 @@ import (
"github.com/go-redis/redis/v7" "github.com/go-redis/redis/v7"
_ "github.com/go-sql-driver/mysql" _ "github.com/go-sql-driver/mysql"
"github.com/ichunt2019/cfg/lib" "github.com/ichunt2019/cfg/lib"
"go-supplier-sync/app/common/config" "go_supplier_sever/app/common/config"
"time" "time"
"xorm.io/xorm" "xorm.io/xorm"
......
package dao package dao
import ( import (
"go-supplier-sync/app/model" "go_supplier_sever/app/model"
"time" "time"
) )
......
...@@ -5,7 +5,7 @@ import ( ...@@ -5,7 +5,7 @@ import (
"github.com/ichunt2019/cfg/lib" "github.com/ichunt2019/cfg/lib"
"github.com/ichunt2019/go-rabbitmq/utils/rabbitmq" "github.com/ichunt2019/go-rabbitmq/utils/rabbitmq"
"github.com/tidwall/gjson" "github.com/tidwall/gjson"
"go-supplier-sync/app/service" "go_supplier_sever/app/service"
) )
type RecvPro struct { type RecvPro struct {
......
package service package service
import "go-supplier-sync/app/dao" import "go_supplier_sever/app/dao"
func GetData(){ func GetData(){
dao.GetUser() dao.GetUser()
......
package service package service
import "go-supplier-sync/app/dao" import "go_supplier_sever/app/dao"
func AddSupplierSync(supplierCode, erpSupplierCode, erpSupplierName string) (err error) { func AddSupplierSync(supplierCode, erpSupplierCode, erpSupplierName string) (err error) {
return dao.AddSupplierSync(supplierCode, erpSupplierCode, erpSupplierName) return dao.AddSupplierSync(supplierCode, erpSupplierCode, erpSupplierName)
......
...@@ -3,7 +3,7 @@ package boot ...@@ -3,7 +3,7 @@ package boot
import ( import (
"github.com/ichunt2019/cfg/lib" "github.com/ichunt2019/cfg/lib"
xlog "github.com/ichunt2019/lxLog/log" xlog "github.com/ichunt2019/lxLog/log"
"go-supplier-sync/app/dao" "go_supplier_sever/app/dao"
) )
func Init(configPath string, logPath string) (err error) { func Init(configPath string, logPath string) (err error) {
......
...@@ -2,8 +2,8 @@ package main ...@@ -2,8 +2,8 @@ package main
import ( import (
"flag" "flag"
"go-supplier-sync/app/queue" "go_supplier_sever/app/queue"
"go-supplier-sync/boot" "go_supplier_sever/boot"
) )
var ( var (
configPath string configPath string
......
#服务注册名称 #服务注册名称
micro_service_name = "go-supplier-sync" micro_service_name = "go_supplier_sever"
#etcd配置信息 etcd服务的ip端口用户密码 #etcd配置信息 etcd服务的ip端口用户密码
[etcd_config] [etcd_config]
......
module go-supplier-sync module go_supplier_sever
go 1.14 go 1.14
......
...@@ -4,8 +4,8 @@ import ( ...@@ -4,8 +4,8 @@ import (
"errors" "errors"
"fmt" "fmt"
"github.com/gin-gonic/gin" "github.com/gin-gonic/gin"
common "go-supplier-sync/app/common/function" common "go_supplier_sever/app/common/function"
"go-supplier-sync/util" "go_supplier_sever/util"
"github.com/ichunt2019/cfg/lib" "github.com/ichunt2019/cfg/lib"
"runtime/debug" "runtime/debug"
) )
......
...@@ -3,8 +3,8 @@ package middleware ...@@ -3,8 +3,8 @@ package middleware
import ( import (
"bytes" "bytes"
"github.com/gin-gonic/gin" "github.com/gin-gonic/gin"
"go-supplier-sync/util" "go_supplier_sever/util"
"go-supplier-sync/util/lib" "go_supplier_sever/util/lib"
"io/ioutil" "io/ioutil"
"time" "time"
) )
......
...@@ -3,7 +3,7 @@ package middleware ...@@ -3,7 +3,7 @@ package middleware
import ( import (
"encoding/json" "encoding/json"
"fmt" "fmt"
"go-supplier-sync/util/lib" "go_supplier_sever/util/lib"
"github.com/gin-gonic/gin" "github.com/gin-gonic/gin"
"strings" "strings"
) )
......
...@@ -4,7 +4,7 @@ import ( ...@@ -4,7 +4,7 @@ import (
"context" "context"
"github.com/gin-gonic/gin" "github.com/gin-gonic/gin"
cfg "github.com/ichunt2019/cfg/lib" cfg "github.com/ichunt2019/cfg/lib"
"go-supplier-sync/middleware" "go_supplier_sever/middleware"
"log" "log"
"net/http" "net/http"
"time" "time"
......
...@@ -2,7 +2,7 @@ package router ...@@ -2,7 +2,7 @@ package router
import ( import (
"github.com/gin-gonic/gin" "github.com/gin-gonic/gin"
"go-supplier-sync/app/controller" "go_supplier_sever/app/controller"
) )
func InitRouter(middlewares ...gin.HandlerFunc) *gin.Engine { func InitRouter(middlewares ...gin.HandlerFunc) *gin.Engine {
......
...@@ -3,7 +3,7 @@ package lib ...@@ -3,7 +3,7 @@ package lib
import ( import (
_ "github.com/go-sql-driver/mysql" _ "github.com/go-sql-driver/mysql"
"github.com/ichunt2019/cfg/lib" "github.com/ichunt2019/cfg/lib"
"go-supplier-sync/app/common/config" "go_supplier_sever/app/common/config"
"xorm.io/xorm" "xorm.io/xorm"
) )
......
...@@ -3,7 +3,7 @@ package util ...@@ -3,7 +3,7 @@ package util
import ( import (
"context" "context"
"go-supplier-sync/util/lib" "go_supplier_sever/util/lib"
"github.com/gin-gonic/gin" "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