feat: change project name.
This commit is contained in:
@@ -10,7 +10,7 @@ import (
|
||||
"github.com/mattn/go-sqlite3"
|
||||
_ "github.com/mattn/go-sqlite3"
|
||||
|
||||
"github.com/tx7do/kratos-utils/bank_card/assets"
|
||||
"github.com/tx7do/go-utils/bank_card/assets"
|
||||
)
|
||||
|
||||
type Database struct {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
module github.com/tx7do/kratos-utils/bank_card
|
||||
module github.com/tx7do/go-utils/bank_card
|
||||
|
||||
go 1.20
|
||||
|
||||
@@ -13,4 +13,4 @@ require (
|
||||
gopkg.in/yaml.v3 v3.0.1 // indirect
|
||||
)
|
||||
|
||||
replace github.com/tx7do/kratos-utils => ../
|
||||
replace github.com/tx7do/go-utils => ../
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
module github.com/tx7do/kratos-utils/entgo
|
||||
module github.com/tx7do/go-utils/entgo
|
||||
|
||||
go 1.20
|
||||
|
||||
@@ -8,7 +8,7 @@ require (
|
||||
github.com/go-kratos/kratos/v2 v2.7.1
|
||||
github.com/google/uuid v1.3.1
|
||||
github.com/stretchr/testify v1.8.4
|
||||
github.com/tx7do/kratos-utils v1.0.0
|
||||
github.com/tx7do/go-utils v1.0.0
|
||||
)
|
||||
|
||||
require (
|
||||
@@ -35,4 +35,4 @@ require (
|
||||
gopkg.in/yaml.v3 v3.0.1 // indirect
|
||||
)
|
||||
|
||||
replace github.com/tx7do/kratos-utils => ../
|
||||
replace github.com/tx7do/go-utils => ../
|
||||
|
||||
@@ -7,7 +7,7 @@ import (
|
||||
"entgo.io/ent/dialect/sql"
|
||||
"github.com/go-kratos/kratos/v2/encoding"
|
||||
|
||||
"github.com/tx7do/kratos-utils/stringcase"
|
||||
"github.com/tx7do/go-utils/stringcase"
|
||||
)
|
||||
|
||||
const (
|
||||
|
||||
@@ -3,7 +3,7 @@ package entgo
|
||||
import (
|
||||
"entgo.io/ent/dialect/sql"
|
||||
|
||||
paging "github.com/tx7do/kratos-utils/pagination"
|
||||
paging "github.com/tx7do/go-utils/pagination"
|
||||
)
|
||||
|
||||
func BuildPaginationSelector(page, pageSize int32, noPaging bool) func(*sql.Selector) {
|
||||
|
||||
@@ -7,8 +7,8 @@ import (
|
||||
"github.com/go-kratos/kratos/v2/log"
|
||||
"github.com/oschwald/geoip2-golang"
|
||||
|
||||
"github.com/tx7do/kratos-utils/geoip"
|
||||
"github.com/tx7do/kratos-utils/geoip/geolite/assets"
|
||||
"github.com/tx7do/go-utils/geoip"
|
||||
"github.com/tx7do/go-utils/geoip/geolite/assets"
|
||||
)
|
||||
|
||||
const defaultOutputLanguage = "zh-CN"
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
module github.com/tx7do/kratos-utils/geoip
|
||||
module github.com/tx7do/go-utils/geoip
|
||||
|
||||
go 1.20
|
||||
|
||||
@@ -18,4 +18,4 @@ require (
|
||||
gopkg.in/yaml.v3 v3.0.1 // indirect
|
||||
)
|
||||
|
||||
replace github.com/tx7do/kratos-utils => ../
|
||||
replace github.com/tx7do/go-utils => ../
|
||||
|
||||
@@ -3,12 +3,12 @@ package qqwry
|
||||
import (
|
||||
"encoding/binary"
|
||||
"errors"
|
||||
"github.com/tx7do/kratos-utils/geoip"
|
||||
"github.com/tx7do/go-utils/geoip"
|
||||
"net"
|
||||
"strings"
|
||||
"sync"
|
||||
|
||||
"github.com/tx7do/kratos-utils/geoip/qqwry/assets"
|
||||
"github.com/tx7do/go-utils/geoip/qqwry/assets"
|
||||
)
|
||||
|
||||
type Client struct {
|
||||
|
||||
2
go.mod
2
go.mod
@@ -1,4 +1,4 @@
|
||||
module github.com/tx7do/kratos-utils
|
||||
module github.com/tx7do/go-utils
|
||||
|
||||
go 1.20
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@ import (
|
||||
"sync/atomic"
|
||||
"time"
|
||||
|
||||
"github.com/tx7do/kratos-utils/trans"
|
||||
"github.com/tx7do/go-utils/trans"
|
||||
)
|
||||
|
||||
type idCounter uint32
|
||||
|
||||
@@ -8,7 +8,7 @@ import (
|
||||
|
||||
"github.com/stretchr/testify/assert"
|
||||
|
||||
"github.com/tx7do/kratos-utils/trans"
|
||||
"github.com/tx7do/go-utils/trans"
|
||||
)
|
||||
|
||||
func TestGenerateOrderIdWithRandom(t *testing.T) {
|
||||
|
||||
8
tag.bat
8
tag.bat
@@ -1,6 +1,6 @@
|
||||
git tag v1.0.0
|
||||
git tag bank_card/v1.0.0
|
||||
git tag entgo/v1.0.2
|
||||
git tag geoip/v1.0.0
|
||||
git tag v1.1.0
|
||||
git tag bank_card/v1.1.0
|
||||
git tag entgo/v1.1.0
|
||||
git tag geoip/v1.1.0
|
||||
|
||||
git push origin --tags
|
||||
|
||||
@@ -3,7 +3,7 @@ package util
|
||||
import (
|
||||
"time"
|
||||
|
||||
"github.com/tx7do/kratos-utils/trans"
|
||||
"github.com/tx7do/go-utils/trans"
|
||||
)
|
||||
|
||||
var DefaultTimeLocation *time.Location
|
||||
|
||||
@@ -5,7 +5,7 @@ import (
|
||||
"testing"
|
||||
"time"
|
||||
|
||||
"github.com/tx7do/kratos-utils/trans"
|
||||
"github.com/tx7do/go-utils/trans"
|
||||
)
|
||||
|
||||
func TestUnixMilliToStringPtr(t *testing.T) {
|
||||
|
||||
Reference in New Issue
Block a user