From 4bb62759b0afda923e2546447ff976b3c21b300f Mon Sep 17 00:00:00 2001 From: trunglt251292 Date: Mon, 10 Oct 2022 10:46:33 +0700 Subject: [PATCH] [Update] Package name --- action.go | 10 +++++----- cache/db.go | 6 +++--- cache/role.go | 4 ++-- go.mod | 6 +++--- go.sum | 12 ++++++------ internal/helper.go | 2 +- model/permission_request.go | 4 ++-- model/query.go | 2 +- model/role_request.go | 4 ++-- model/user_request.go | 4 ++-- model/user_response.go | 2 +- permission/db.go | 6 +++--- permission/handle.go | 6 +++--- role/db.go | 6 +++--- role/handle.go | 6 +++--- user/db.go | 6 +++--- user/handle.go | 12 ++++++------ usermngmt.go | 12 ++++++------ 18 files changed, 55 insertions(+), 55 deletions(-) diff --git a/action.go b/action.go index cd9d2b3..c31feb7 100644 --- a/action.go +++ b/action.go @@ -1,11 +1,11 @@ package usermngmt import ( - "github.com/Selly-Modules/usermngmt/cache" - "github.com/Selly-Modules/usermngmt/model" - "github.com/Selly-Modules/usermngmt/permission" - "github.com/Selly-Modules/usermngmt/role" - "github.com/Selly-Modules/usermngmt/user" + "git.selly.red/Selly-Modules/usermngmt/cache" + "git.selly.red/Selly-Modules/usermngmt/model" + "git.selly.red/Selly-Modules/usermngmt/permission" + "git.selly.red/Selly-Modules/usermngmt/role" + "git.selly.red/Selly-Modules/usermngmt/user" ) // diff --git a/cache/db.go b/cache/db.go index 99feaf3..f66b749 100644 --- a/cache/db.go +++ b/cache/db.go @@ -3,9 +3,9 @@ package cache import ( "context" - "github.com/Selly-Modules/logger" - "github.com/Selly-Modules/usermngmt/database" - "github.com/Selly-Modules/usermngmt/model" + "git.selly.red/Selly-Modules/logger" + "git.selly.red/Selly-Modules/usermngmt/database" + "git.selly.red/Selly-Modules/usermngmt/model" "go.mongodb.org/mongo-driver/mongo/options" ) diff --git a/cache/role.go b/cache/role.go index 20fa546..2f91c4b 100644 --- a/cache/role.go +++ b/cache/role.go @@ -5,8 +5,8 @@ import ( "encoding/json" "sync" - "github.com/Selly-Modules/logger" - "github.com/Selly-Modules/usermngmt/model" + "git.selly.red/Selly-Modules/logger" + "git.selly.red/Selly-Modules/usermngmt/model" "go.mongodb.org/mongo-driver/bson" ) diff --git a/go.mod b/go.mod index 6845a4e..513bcf1 100644 --- a/go.mod +++ b/go.mod @@ -1,10 +1,10 @@ -module github.com/Selly-Modules/usermngmt +module git.selly.red/Selly-Modules/usermngmt go 1.17 require ( - github.com/Selly-Modules/logger v0.0.2 - github.com/Selly-Modules/mongodb v1.0.1 + git.selly.red/Selly-Modules/logger v0.0.2 + git.selly.red/Selly-Modules/mongodb v1.0.1 github.com/go-redis/redis/v8 v8.11.4 github.com/logrusorgru/aurora v2.0.3+incompatible github.com/thoas/go-funk v0.9.1 diff --git a/go.sum b/go.sum index 6bb44b7..43d6b2b 100644 --- a/go.sum +++ b/go.sum @@ -1,10 +1,10 @@ github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU= -github.com/Selly-Modules/logger v0.0.0-20210809034923-140a51f39ec9 h1:AuJ/IIZ7yppyP19ILEYkwz26CwGXR4xUyXANKSG0+1U= -github.com/Selly-Modules/logger v0.0.0-20210809034923-140a51f39ec9/go.mod h1:RWhSQ3F01an8KD00VjzRBZOMcE5eV2Cy0/l4ZkeieyU= -github.com/Selly-Modules/logger v0.0.2 h1:ZchJbOBN26K11qmfgCtkF2eO2h7ldIKGG5SbQzmgBEE= -github.com/Selly-Modules/logger v0.0.2/go.mod h1:kvXfyQNzXgdHfbocMCtUssRXicVKdwJahAKLKMJD1uU= -github.com/Selly-Modules/mongodb v1.0.1 h1:TeBIs2VG4EbE0uAN71bD11zv5X0M7AvJfEcID3TzwIw= -github.com/Selly-Modules/mongodb v1.0.1/go.mod h1:OhqdqYqh8WqEEruz6U27Wu1kKoBLwIUQsc+56xl0Wcs= +git.selly.red/Selly-Modules/logger v0.0.0-20210809034923-140a51f39ec9 h1:AuJ/IIZ7yppyP19ILEYkwz26CwGXR4xUyXANKSG0+1U= +git.selly.red/Selly-Modules/logger v0.0.0-20210809034923-140a51f39ec9/go.mod h1:RWhSQ3F01an8KD00VjzRBZOMcE5eV2Cy0/l4ZkeieyU= +git.selly.red/Selly-Modules/logger v0.0.2 h1:ZchJbOBN26K11qmfgCtkF2eO2h7ldIKGG5SbQzmgBEE= +git.selly.red/Selly-Modules/logger v0.0.2/go.mod h1:kvXfyQNzXgdHfbocMCtUssRXicVKdwJahAKLKMJD1uU= +git.selly.red/Selly-Modules/mongodb v1.0.1 h1:TeBIs2VG4EbE0uAN71bD11zv5X0M7AvJfEcID3TzwIw= +git.selly.red/Selly-Modules/mongodb v1.0.1/go.mod h1:OhqdqYqh8WqEEruz6U27Wu1kKoBLwIUQsc+56xl0Wcs= github.com/armon/go-radix v1.0.0 h1:F4z6KzEeeQIMeLFa97iZU6vupzoecKdU5TX24SNppXI= github.com/armon/go-radix v1.0.0/go.mod h1:ufUuZ+zHj4x4TnLV4JWEpy2hxWSpsRywHrMgIH9cCH8= github.com/benbjohnson/clock v1.1.0 h1:Q92kusRqC1XV2MjkWETPvjJVqKetz1OzxZB7mHJLju8= diff --git a/internal/helper.go b/internal/helper.go index a64dc4d..96372f5 100644 --- a/internal/helper.go +++ b/internal/helper.go @@ -6,7 +6,7 @@ import ( "go.mongodb.org/mongo-driver/bson/primitive" "strings" - "github.com/Selly-Modules/mongodb" + "git.selly.red/Selly-Modules/mongodb" "golang.org/x/crypto/bcrypt" ) diff --git a/model/permission_request.go b/model/permission_request.go index 0cafe4e..67b192d 100644 --- a/model/permission_request.go +++ b/model/permission_request.go @@ -3,8 +3,8 @@ package model import ( "errors" - "github.com/Selly-Modules/logger" - "github.com/Selly-Modules/mongodb" + "git.selly.red/Selly-Modules/logger" + "git.selly.red/Selly-Modules/mongodb" ) // PermissionCreateOptions ... diff --git a/model/query.go b/model/query.go index fec215a..5b8f661 100644 --- a/model/query.go +++ b/model/query.go @@ -1,7 +1,7 @@ package model import ( - "github.com/Selly-Modules/mongodb" + "git.selly.red/Selly-Modules/mongodb" "go.mongodb.org/mongo-driver/bson" "go.mongodb.org/mongo-driver/bson/primitive" "go.mongodb.org/mongo-driver/mongo/options" diff --git a/model/role_request.go b/model/role_request.go index 8f001f4..8aa80c6 100644 --- a/model/role_request.go +++ b/model/role_request.go @@ -3,8 +3,8 @@ package model import ( "errors" - "github.com/Selly-Modules/logger" - "github.com/Selly-Modules/usermngmt/internal" + "git.selly.red/Selly-Modules/logger" + "git.selly.red/Selly-Modules/usermngmt/internal" ) // RoleCreateOptions ... diff --git a/model/user_request.go b/model/user_request.go index 4552bd0..e007df4 100644 --- a/model/user_request.go +++ b/model/user_request.go @@ -3,8 +3,8 @@ package model import ( "errors" - "github.com/Selly-Modules/logger" - "github.com/Selly-Modules/usermngmt/internal" + "git.selly.red/Selly-Modules/logger" + "git.selly.red/Selly-Modules/usermngmt/internal" "go.mongodb.org/mongo-driver/bson" ) diff --git a/model/user_response.go b/model/user_response.go index 05b9e60..68570ab 100644 --- a/model/user_response.go +++ b/model/user_response.go @@ -1,7 +1,7 @@ package model import ( - "github.com/Selly-Modules/usermngmt/internal" + "git.selly.red/Selly-Modules/usermngmt/internal" "go.mongodb.org/mongo-driver/bson" "go.mongodb.org/mongo-driver/bson/primitive" "time" diff --git a/permission/db.go b/permission/db.go index 6bec5d3..ed2b1f5 100644 --- a/permission/db.go +++ b/permission/db.go @@ -4,9 +4,9 @@ import ( "context" "fmt" - "github.com/Selly-Modules/logger" - "github.com/Selly-Modules/usermngmt/database" - "github.com/Selly-Modules/usermngmt/model" + "git.selly.red/Selly-Modules/logger" + "git.selly.red/Selly-Modules/usermngmt/database" + "git.selly.red/Selly-Modules/usermngmt/model" "go.mongodb.org/mongo-driver/bson" "go.mongodb.org/mongo-driver/bson/primitive" "go.mongodb.org/mongo-driver/mongo/options" diff --git a/permission/handle.go b/permission/handle.go index d64c193..8142fb1 100644 --- a/permission/handle.go +++ b/permission/handle.go @@ -5,9 +5,9 @@ import ( "errors" "sync" - "github.com/Selly-Modules/mongodb" - "github.com/Selly-Modules/usermngmt/internal" - "github.com/Selly-Modules/usermngmt/model" + "git.selly.red/Selly-Modules/mongodb" + "git.selly.red/Selly-Modules/usermngmt/internal" + "git.selly.red/Selly-Modules/usermngmt/model" "go.mongodb.org/mongo-driver/bson" ) diff --git a/role/db.go b/role/db.go index 39c84e8..511cc91 100644 --- a/role/db.go +++ b/role/db.go @@ -4,9 +4,9 @@ import ( "context" "fmt" - "github.com/Selly-Modules/logger" - "github.com/Selly-Modules/usermngmt/database" - "github.com/Selly-Modules/usermngmt/model" + "git.selly.red/Selly-Modules/logger" + "git.selly.red/Selly-Modules/usermngmt/database" + "git.selly.red/Selly-Modules/usermngmt/model" "go.mongodb.org/mongo-driver/bson" "go.mongodb.org/mongo-driver/bson/primitive" "go.mongodb.org/mongo-driver/mongo/options" diff --git a/role/handle.go b/role/handle.go index 098f510..3a4ce14 100644 --- a/role/handle.go +++ b/role/handle.go @@ -5,9 +5,9 @@ import ( "errors" "sync" - "github.com/Selly-Modules/mongodb" - "github.com/Selly-Modules/usermngmt/internal" - "github.com/Selly-Modules/usermngmt/model" + "git.selly.red/Selly-Modules/mongodb" + "git.selly.red/Selly-Modules/usermngmt/internal" + "git.selly.red/Selly-Modules/usermngmt/model" "go.mongodb.org/mongo-driver/bson" ) diff --git a/user/db.go b/user/db.go index 9c4b8b8..2df398e 100644 --- a/user/db.go +++ b/user/db.go @@ -4,9 +4,9 @@ import ( "context" "fmt" - "github.com/Selly-Modules/logger" - "github.com/Selly-Modules/usermngmt/database" - "github.com/Selly-Modules/usermngmt/model" + "git.selly.red/Selly-Modules/logger" + "git.selly.red/Selly-Modules/usermngmt/database" + "git.selly.red/Selly-Modules/usermngmt/model" "go.mongodb.org/mongo-driver/bson" "go.mongodb.org/mongo-driver/bson/primitive" "go.mongodb.org/mongo-driver/mongo/options" diff --git a/user/handle.go b/user/handle.go index 1ecc631..5adf5d7 100644 --- a/user/handle.go +++ b/user/handle.go @@ -6,12 +6,12 @@ import ( "fmt" "sync" - "github.com/Selly-Modules/logger" - "github.com/Selly-Modules/mongodb" - "github.com/Selly-Modules/usermngmt/cache" - "github.com/Selly-Modules/usermngmt/config" - "github.com/Selly-Modules/usermngmt/internal" - "github.com/Selly-Modules/usermngmt/model" + "git.selly.red/Selly-Modules/logger" + "git.selly.red/Selly-Modules/mongodb" + "git.selly.red/Selly-Modules/usermngmt/cache" + "git.selly.red/Selly-Modules/usermngmt/config" + "git.selly.red/Selly-Modules/usermngmt/internal" + "git.selly.red/Selly-Modules/usermngmt/model" "github.com/thoas/go-funk" "go.mongodb.org/mongo-driver/bson" "go.mongodb.org/mongo-driver/bson/primitive" diff --git a/usermngmt.go b/usermngmt.go index 664bc04..efec02b 100644 --- a/usermngmt.go +++ b/usermngmt.go @@ -4,13 +4,13 @@ import ( "errors" "fmt" - "github.com/Selly-Modules/logger" - "github.com/Selly-Modules/mongodb" + "git.selly.red/Selly-Modules/logger" + "git.selly.red/Selly-Modules/mongodb" - "github.com/Selly-Modules/usermngmt/cache" - configMoudle "github.com/Selly-Modules/usermngmt/config" - "github.com/Selly-Modules/usermngmt/database" - "github.com/Selly-Modules/usermngmt/internal" + "git.selly.red/Selly-Modules/usermngmt/cache" + configMoudle "git.selly.red/Selly-Modules/usermngmt/config" + "git.selly.red/Selly-Modules/usermngmt/database" + "git.selly.red/Selly-Modules/usermngmt/internal" ) // RedisConfig ...