diff --git a/app/caches/bannerlistcache/banner_list.go b/app/caches/bannerlistcache/banner_list.go index b6c8167..2898b9b 100644 --- a/app/caches/bannerlistcache/banner_list.go +++ b/app/caches/bannerlistcache/banner_list.go @@ -3,7 +3,7 @@ package bannerlistcache import ( "sync" - "qteam/app/caches" + "PaymentCenter/app/caches" "github.com/qit-team/snow-core/cache" ) @@ -21,7 +21,7 @@ type bannerListCache struct { cache.BaseCache } -//单例模式 +// 单例模式 func GetInstance() *bannerListCache { once.Do(func() { instance = new(bannerListCache) diff --git a/app/caches/bannerlistcache/banner_list_test.go b/app/caches/bannerlistcache/banner_list_test.go index 7b22176..7e0cf77 100644 --- a/app/caches/bannerlistcache/banner_list_test.go +++ b/app/caches/bannerlistcache/banner_list_test.go @@ -5,7 +5,7 @@ import ( "fmt" "testing" - "qteam/config" + "PaymentCenter/config" "github.com/qit-team/snow-core/cache" _ "github.com/qit-team/snow-core/cache/rediscache" diff --git a/app/http/controllers/base.go b/app/http/controllers/base.go index 887be73..d8dedea 100644 --- a/app/http/controllers/base.go +++ b/app/http/controllers/base.go @@ -1,6 +1,8 @@ package controllers import ( + "PaymentCenter/app/utils" + "PaymentCenter/config" "bytes" "context" "encoding/base64" @@ -13,10 +15,8 @@ import ( zh_translations "gopkg.in/go-playground/validator.v9/translations/zh" "io/ioutil" "net/http" - "qteam/app/utils" - "qteam/config" - "qteam/app/constants/errorcode" + "PaymentCenter/app/constants/errorcode" "github.com/gin-gonic/gin" ) diff --git a/app/http/metric/metric.go b/app/http/metric/metric.go index 208cced..9e50203 100644 --- a/app/http/metric/metric.go +++ b/app/http/metric/metric.go @@ -3,7 +3,7 @@ package metric import ( "net/http" - "qteam/app/utils/metric" + "PaymentCenter/app/utils/metric" "github.com/prometheus/client_golang/prometheus" ) diff --git a/app/http/middlewares/base.go b/app/http/middlewares/base.go index f992a6c..e9ff544 100644 --- a/app/http/middlewares/base.go +++ b/app/http/middlewares/base.go @@ -1,15 +1,15 @@ package middlewares import ( + "PaymentCenter/app/constants/common" + "PaymentCenter/app/constants/errorcode" + "PaymentCenter/app/http/controllers" + "PaymentCenter/app/http/requestmapping" + "PaymentCenter/app/utils" "context" "errors" "github.com/gin-gonic/gin" "github.com/qit-team/snow-core/redis" - "qteam/app/constants/common" - "qteam/app/constants/errorcode" - "qteam/app/http/controllers" - "qteam/app/http/requestmapping" - "qteam/app/utils" "strings" ) diff --git a/app/http/middlewares/metric.go b/app/http/middlewares/metric.go index 2b8f0a2..0780fe2 100644 --- a/app/http/middlewares/metric.go +++ b/app/http/middlewares/metric.go @@ -3,7 +3,7 @@ package middlewares import ( "time" - "qteam/app/http/metric" + "PaymentCenter/app/http/metric" "github.com/gin-gonic/gin" ) diff --git a/app/http/middlewares/server_recovery.go b/app/http/middlewares/server_recovery.go index 9a74ae2..87d7129 100644 --- a/app/http/middlewares/server_recovery.go +++ b/app/http/middlewares/server_recovery.go @@ -6,8 +6,8 @@ import ( "net/http/httputil" "runtime/debug" - "qteam/app/constants/logtype" - "qteam/config" + "PaymentCenter/app/constants/logtype" + "PaymentCenter/config" "github.com/gin-gonic/gin" "github.com/qit-team/snow-core/log/logger" diff --git a/app/http/middlewares/tracer.go b/app/http/middlewares/tracer.go index d0158d6..7da1024 100644 --- a/app/http/middlewares/tracer.go +++ b/app/http/middlewares/tracer.go @@ -1,9 +1,9 @@ package middlewares import ( + "PaymentCenter/app/http/trace" + "PaymentCenter/app/utils" "github.com/gin-gonic/gin" - "qteam/app/http/trace" - "qteam/app/utils" "strconv" ) diff --git a/app/http/routes/admin.go b/app/http/routes/admin.go index ea01006..414b1ce 100644 --- a/app/http/routes/admin.go +++ b/app/http/routes/admin.go @@ -1,13 +1,13 @@ package routes import ( + "PaymentCenter/app/http/controllers" + "PaymentCenter/app/http/middlewares" + "PaymentCenter/app/http/trace" + "PaymentCenter/app/utils" + "PaymentCenter/config" "github.com/gin-gonic/gin" "github.com/qit-team/snow-core/http/middleware" - "qteam/app/http/controllers" - "qteam/app/http/middlewares" - "qteam/app/http/trace" - "qteam/app/utils" - "qteam/config" ) func RegisterAdminRoute(router *gin.Engine) { diff --git a/app/http/routes/route.go b/app/http/routes/route.go index 54b5230..56425b3 100644 --- a/app/http/routes/route.go +++ b/app/http/routes/route.go @@ -4,11 +4,11 @@ package routes * 配置路由 */ import ( - "qteam/app/http/controllers" - "qteam/app/http/middlewares" - "qteam/app/http/trace" - "qteam/app/utils/metric" - "qteam/config" + "PaymentCenter/app/http/controllers" + "PaymentCenter/app/http/middlewares" + "PaymentCenter/app/http/trace" + "PaymentCenter/app/utils/metric" + "PaymentCenter/config" "github.com/gin-gonic/gin" "github.com/qit-team/snow-core/http/middleware" diff --git a/app/http/trace/trace.go b/app/http/trace/trace.go index 2594f3f..977a374 100644 --- a/app/http/trace/trace.go +++ b/app/http/trace/trace.go @@ -1,10 +1,10 @@ package trace import ( + "PaymentCenter/config" "github.com/openzipkin/zipkin-go" zkHttp "github.com/openzipkin/zipkin-go/reporter/http" "log" - "qteam/config" "sync" ) diff --git a/app/jobs/kernel.go b/app/jobs/kernel.go index 83f7491..eefb73c 100644 --- a/app/jobs/kernel.go +++ b/app/jobs/kernel.go @@ -3,8 +3,8 @@ package jobs import ( "strings" - "qteam/app/jobs/basejob" - "qteam/config" + "PaymentCenter/app/jobs/basejob" + "PaymentCenter/config" "github.com/qit-team/snow-core/log/logger" "github.com/qit-team/snow-core/queue" diff --git a/app/mq/quenue.go b/app/mq/quenue.go index c93ebee..77dae22 100644 --- a/app/mq/quenue.go +++ b/app/mq/quenue.go @@ -1,7 +1,7 @@ package mq import ( - "qteam/app/utils/mq" + "PaymentCenter/app/utils/mq" ) func startQunue(name string, method interface{}, mqTp string, tp int, exhange string) { diff --git a/app/third/market/config.go b/app/third/market/config.go index b75ad06..ef5449a 100644 --- a/app/third/market/config.go +++ b/app/third/market/config.go @@ -1,12 +1,12 @@ package market import ( + "PaymentCenter/config" "bytes" "encoding/json" "github.com/pkg/errors" "io/ioutil" "net/http" - "qteam/config" ) type MarketClient struct { diff --git a/app/third/market/market_api.go b/app/third/market/market_api.go index ddf0605..840b6b2 100644 --- a/app/third/market/market_api.go +++ b/app/third/market/market_api.go @@ -1,9 +1,9 @@ package market import ( + "PaymentCenter/app/utils/encrypt" + "PaymentCenter/config" "encoding/json" - "qteam/app/utils/encrypt" - "qteam/config" "time" ) diff --git a/app/third/market/market_api_test.go b/app/third/market/market_api_test.go index 6dca249..8654769 100644 --- a/app/third/market/market_api_test.go +++ b/app/third/market/market_api_test.go @@ -1,11 +1,11 @@ package market import ( + "PaymentCenter/app/utils" + "PaymentCenter/config" "fmt" "github.com/qit-team/snow-core/kernel/server" "os" - "qteam/app/utils" - "qteam/config" "testing" ) diff --git a/app/third/openapiService/openapi_service.go b/app/third/openapiService/openapi_service.go index 64be38b..ba5c569 100644 --- a/app/third/openapiService/openapi_service.go +++ b/app/third/openapiService/openapi_service.go @@ -1,17 +1,17 @@ package openapiService import ( + "PaymentCenter/app/models/orderdetailsmodel" + "PaymentCenter/app/models/ordersmodel" + "PaymentCenter/app/models/usercouponmodel" + "PaymentCenter/app/utils" + "PaymentCenter/config" "context" "crypto/aes" "encoding/base64" "gitee.com/chengdu_blue_brothers/openapi-go-sdk/api" "gitee.com/chengdu_blue_brothers/openapi-go-sdk/notify" "net/http" - "qteam/app/models/orderdetailsmodel" - "qteam/app/models/ordersmodel" - "qteam/app/models/usercouponmodel" - "qteam/app/utils" - "qteam/config" "time" ) diff --git a/app/utils/httpclient/fasthttp.go b/app/utils/httpclient/fasthttp.go index da80c53..42f78eb 100644 --- a/app/utils/httpclient/fasthttp.go +++ b/app/utils/httpclient/fasthttp.go @@ -1,8 +1,8 @@ package httpclient import ( + "PaymentCenter/app/utils" "fmt" - "qteam/app/utils" "github.com/valyala/fasthttp" "time" diff --git a/app/utils/mq/mqmanager.go b/app/utils/mq/mqmanager.go index 7247e1f..8ac56b2 100644 --- a/app/utils/mq/mqmanager.go +++ b/app/utils/mq/mqmanager.go @@ -1,8 +1,8 @@ package mq import ( - common3 "qteam/app/constants/common" - mq "qteam/app/utils/mq/mqs" + common3 "PaymentCenter/app/constants/common" + mq "PaymentCenter/app/utils/mq/mqs" "sync" ) diff --git a/app/utils/mq/mqs/kafka.go b/app/utils/mq/mqs/kafka.go index 3103cf1..5208608 100644 --- a/app/utils/mq/mqs/kafka.go +++ b/app/utils/mq/mqs/kafka.go @@ -1,13 +1,13 @@ package mq import ( + "PaymentCenter/app/utils" + "PaymentCenter/config" "context" "encoding/json" "fmt" "github.com/Shopify/sarama" "github.com/qit-team/snow-core/redis" - "qteam/app/utils" - "qteam/config" "strconv" "sync" diff --git a/app/utils/mq/mqs/nats.go b/app/utils/mq/mqs/nats.go index 3805f81..6461dff 100644 --- a/app/utils/mq/mqs/nats.go +++ b/app/utils/mq/mqs/nats.go @@ -1,13 +1,13 @@ package mq import ( + "PaymentCenter/app/utils" + "PaymentCenter/config" "encoding/json" "fmt" "github.com/nats-io/nats.go" _ "github.com/nats-io/nats.go" "github.com/streadway/amqp" - "qteam/app/utils" - "qteam/config" ) type NatsMq struct { diff --git a/app/utils/nacos.go b/app/utils/nacos.go index 2237642..9366bcb 100644 --- a/app/utils/nacos.go +++ b/app/utils/nacos.go @@ -1,12 +1,12 @@ package utils import ( + "PaymentCenter/config" "fmt" "github.com/nacos-group/nacos-sdk-go/v2/clients" "github.com/nacos-group/nacos-sdk-go/v2/clients/naming_client" "github.com/nacos-group/nacos-sdk-go/v2/common/constant" "github.com/nacos-group/nacos-sdk-go/v2/vo" - "qteam/config" "sync" ) diff --git a/app/utils/sm2/sm2.go b/app/utils/sm2/sm2.go index 9f40a90..b193b4f 100644 --- a/app/utils/sm2/sm2.go +++ b/app/utils/sm2/sm2.go @@ -1,13 +1,13 @@ package sm2 import ( + "PaymentCenter/config" "crypto/rand" "encoding/base64" "encoding/hex" "fmt" "github.com/tjfoc/gmsm/sm2" "math/big" - "qteam/config" "strings" ) diff --git a/app/utils/util.go b/app/utils/util.go index 633149d..42ef269 100644 --- a/app/utils/util.go +++ b/app/utils/util.go @@ -1,6 +1,8 @@ package utils import ( + "PaymentCenter/app/constants/common" + "PaymentCenter/config" "context" "crypto/md5" "crypto/rand" @@ -19,8 +21,6 @@ import ( "net" "os" "path/filepath" - "qteam/app/constants/common" - "qteam/config" "reflect" "regexp" "runtime" diff --git a/bootstrap/bootstrap.go b/bootstrap/bootstrap.go index 785b058..499fa77 100644 --- a/bootstrap/bootstrap.go +++ b/bootstrap/bootstrap.go @@ -1,10 +1,10 @@ package bootstrap import ( + "PaymentCenter/app/jobs" + "PaymentCenter/app/jobs/basejob" + "PaymentCenter/config" "github.com/qit-team/snow-core/log/accesslogger" - "qteam/app/jobs" - "qteam/app/jobs/basejob" - "qteam/config" "github.com/qit-team/snow-core/db" "github.com/qit-team/snow-core/kernel/close" diff --git a/event/EventManger.go b/event/EventManger.go index 87bc6ab..fb3f213 100644 --- a/event/EventManger.go +++ b/event/EventManger.go @@ -1,6 +1,6 @@ package event -import "qteam/app/utils" +import "PaymentCenter/app/utils" type EventHandler interface { Handle(param interface{}) diff --git a/event/event.go b/event/event.go index 3f3799b..a81ca03 100644 --- a/event/event.go +++ b/event/event.go @@ -1,8 +1,8 @@ package event import ( - "qteam/app/constants/common" - "qteam/event/observers" + "PaymentCenter/app/constants/common" + "PaymentCenter/event/observers" ) /** diff --git a/go.mod b/go.mod index 11ba3a8..21c4a1f 100644 --- a/go.mod +++ b/go.mod @@ -1,4 +1,4 @@ -module qteam +module PaymentCenter go 1.21 diff --git a/main.go b/main.go index 736894f..e7d4b1b 100644 --- a/main.go +++ b/main.go @@ -1,16 +1,16 @@ package main import ( + "PaymentCenter/app/console" + "PaymentCenter/app/http/routes" + "PaymentCenter/app/jobs" + "PaymentCenter/bootstrap" + "PaymentCenter/config" + _ "PaymentCenter/docs" + "PaymentCenter/rpc" "errors" "fmt" "os" - "qteam/app/console" - "qteam/app/http/routes" - "qteam/app/jobs" - "qteam/bootstrap" - "qteam/config" - _ "qteam/docs" - "qteam/rpc" _ "github.com/go-sql-driver/mysql" _ "github.com/qit-team/snow-core/cache/rediscache" diff --git a/rpc/server.go b/rpc/server.go index 20dd716..7213ca6 100644 --- a/rpc/server.go +++ b/rpc/server.go @@ -1,8 +1,8 @@ package rpc import ( + __ "PaymentCenter/rpc/user" "github.com/qit-team/snow-core/kernel/server" - __ "qteam/rpc/user" ) func StartRpc() error { @@ -10,7 +10,7 @@ func StartRpc() error { //等待停止信号 server.WaitStop() - + return nil } diff --git a/rpc/user/user.server.go b/rpc/user/user.server.go index 19b5109..5635d13 100644 --- a/rpc/user/user.server.go +++ b/rpc/user/user.server.go @@ -1,12 +1,12 @@ package __ import ( + "PaymentCenter/app/utils" + "PaymentCenter/config" "context" "google.golang.org/grpc" "log" "net" - "qteam/app/utils" - "qteam/config" ) // 服务定义