[Update] Package name

This commit is contained in:
trunglt251292 2022-10-10 10:46:33 +07:00
parent e87f36995b
commit 4bb62759b0
18 changed files with 55 additions and 55 deletions

View File

@ -1,11 +1,11 @@
package usermngmt package usermngmt
import ( import (
"github.com/Selly-Modules/usermngmt/cache" "git.selly.red/Selly-Modules/usermngmt/cache"
"github.com/Selly-Modules/usermngmt/model" "git.selly.red/Selly-Modules/usermngmt/model"
"github.com/Selly-Modules/usermngmt/permission" "git.selly.red/Selly-Modules/usermngmt/permission"
"github.com/Selly-Modules/usermngmt/role" "git.selly.red/Selly-Modules/usermngmt/role"
"github.com/Selly-Modules/usermngmt/user" "git.selly.red/Selly-Modules/usermngmt/user"
) )
// //

6
cache/db.go vendored
View File

@ -3,9 +3,9 @@ package cache
import ( import (
"context" "context"
"github.com/Selly-Modules/logger" "git.selly.red/Selly-Modules/logger"
"github.com/Selly-Modules/usermngmt/database" "git.selly.red/Selly-Modules/usermngmt/database"
"github.com/Selly-Modules/usermngmt/model" "git.selly.red/Selly-Modules/usermngmt/model"
"go.mongodb.org/mongo-driver/mongo/options" "go.mongodb.org/mongo-driver/mongo/options"
) )

4
cache/role.go vendored
View File

@ -5,8 +5,8 @@ import (
"encoding/json" "encoding/json"
"sync" "sync"
"github.com/Selly-Modules/logger" "git.selly.red/Selly-Modules/logger"
"github.com/Selly-Modules/usermngmt/model" "git.selly.red/Selly-Modules/usermngmt/model"
"go.mongodb.org/mongo-driver/bson" "go.mongodb.org/mongo-driver/bson"
) )

6
go.mod
View File

@ -1,10 +1,10 @@
module github.com/Selly-Modules/usermngmt module git.selly.red/Selly-Modules/usermngmt
go 1.17 go 1.17
require ( require (
github.com/Selly-Modules/logger v0.0.2 git.selly.red/Selly-Modules/logger v0.0.2
github.com/Selly-Modules/mongodb v1.0.1 git.selly.red/Selly-Modules/mongodb v1.0.1
github.com/go-redis/redis/v8 v8.11.4 github.com/go-redis/redis/v8 v8.11.4
github.com/logrusorgru/aurora v2.0.3+incompatible github.com/logrusorgru/aurora v2.0.3+incompatible
github.com/thoas/go-funk v0.9.1 github.com/thoas/go-funk v0.9.1

12
go.sum
View File

@ -1,10 +1,10 @@
github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU= 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= git.selly.red/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= git.selly.red/Selly-Modules/logger v0.0.0-20210809034923-140a51f39ec9/go.mod h1:RWhSQ3F01an8KD00VjzRBZOMcE5eV2Cy0/l4ZkeieyU=
github.com/Selly-Modules/logger v0.0.2 h1:ZchJbOBN26K11qmfgCtkF2eO2h7ldIKGG5SbQzmgBEE= git.selly.red/Selly-Modules/logger v0.0.2 h1:ZchJbOBN26K11qmfgCtkF2eO2h7ldIKGG5SbQzmgBEE=
github.com/Selly-Modules/logger v0.0.2/go.mod h1:kvXfyQNzXgdHfbocMCtUssRXicVKdwJahAKLKMJD1uU= git.selly.red/Selly-Modules/logger v0.0.2/go.mod h1:kvXfyQNzXgdHfbocMCtUssRXicVKdwJahAKLKMJD1uU=
github.com/Selly-Modules/mongodb v1.0.1 h1:TeBIs2VG4EbE0uAN71bD11zv5X0M7AvJfEcID3TzwIw= git.selly.red/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/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 h1:F4z6KzEeeQIMeLFa97iZU6vupzoecKdU5TX24SNppXI=
github.com/armon/go-radix v1.0.0/go.mod h1:ufUuZ+zHj4x4TnLV4JWEpy2hxWSpsRywHrMgIH9cCH8= github.com/armon/go-radix v1.0.0/go.mod h1:ufUuZ+zHj4x4TnLV4JWEpy2hxWSpsRywHrMgIH9cCH8=
github.com/benbjohnson/clock v1.1.0 h1:Q92kusRqC1XV2MjkWETPvjJVqKetz1OzxZB7mHJLju8= github.com/benbjohnson/clock v1.1.0 h1:Q92kusRqC1XV2MjkWETPvjJVqKetz1OzxZB7mHJLju8=

View File

@ -6,7 +6,7 @@ import (
"go.mongodb.org/mongo-driver/bson/primitive" "go.mongodb.org/mongo-driver/bson/primitive"
"strings" "strings"
"github.com/Selly-Modules/mongodb" "git.selly.red/Selly-Modules/mongodb"
"golang.org/x/crypto/bcrypt" "golang.org/x/crypto/bcrypt"
) )

View File

@ -3,8 +3,8 @@ package model
import ( import (
"errors" "errors"
"github.com/Selly-Modules/logger" "git.selly.red/Selly-Modules/logger"
"github.com/Selly-Modules/mongodb" "git.selly.red/Selly-Modules/mongodb"
) )
// PermissionCreateOptions ... // PermissionCreateOptions ...

View File

@ -1,7 +1,7 @@
package model package model
import ( import (
"github.com/Selly-Modules/mongodb" "git.selly.red/Selly-Modules/mongodb"
"go.mongodb.org/mongo-driver/bson" "go.mongodb.org/mongo-driver/bson"
"go.mongodb.org/mongo-driver/bson/primitive" "go.mongodb.org/mongo-driver/bson/primitive"
"go.mongodb.org/mongo-driver/mongo/options" "go.mongodb.org/mongo-driver/mongo/options"

View File

@ -3,8 +3,8 @@ package model
import ( import (
"errors" "errors"
"github.com/Selly-Modules/logger" "git.selly.red/Selly-Modules/logger"
"github.com/Selly-Modules/usermngmt/internal" "git.selly.red/Selly-Modules/usermngmt/internal"
) )
// RoleCreateOptions ... // RoleCreateOptions ...

View File

@ -3,8 +3,8 @@ package model
import ( import (
"errors" "errors"
"github.com/Selly-Modules/logger" "git.selly.red/Selly-Modules/logger"
"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"
) )

View File

@ -1,7 +1,7 @@
package model package model
import ( 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"
"go.mongodb.org/mongo-driver/bson/primitive" "go.mongodb.org/mongo-driver/bson/primitive"
"time" "time"

View File

@ -4,9 +4,9 @@ import (
"context" "context"
"fmt" "fmt"
"github.com/Selly-Modules/logger" "git.selly.red/Selly-Modules/logger"
"github.com/Selly-Modules/usermngmt/database" "git.selly.red/Selly-Modules/usermngmt/database"
"github.com/Selly-Modules/usermngmt/model" "git.selly.red/Selly-Modules/usermngmt/model"
"go.mongodb.org/mongo-driver/bson" "go.mongodb.org/mongo-driver/bson"
"go.mongodb.org/mongo-driver/bson/primitive" "go.mongodb.org/mongo-driver/bson/primitive"
"go.mongodb.org/mongo-driver/mongo/options" "go.mongodb.org/mongo-driver/mongo/options"

View File

@ -5,9 +5,9 @@ import (
"errors" "errors"
"sync" "sync"
"github.com/Selly-Modules/mongodb" "git.selly.red/Selly-Modules/mongodb"
"github.com/Selly-Modules/usermngmt/internal" "git.selly.red/Selly-Modules/usermngmt/internal"
"github.com/Selly-Modules/usermngmt/model" "git.selly.red/Selly-Modules/usermngmt/model"
"go.mongodb.org/mongo-driver/bson" "go.mongodb.org/mongo-driver/bson"
) )

View File

@ -4,9 +4,9 @@ import (
"context" "context"
"fmt" "fmt"
"github.com/Selly-Modules/logger" "git.selly.red/Selly-Modules/logger"
"github.com/Selly-Modules/usermngmt/database" "git.selly.red/Selly-Modules/usermngmt/database"
"github.com/Selly-Modules/usermngmt/model" "git.selly.red/Selly-Modules/usermngmt/model"
"go.mongodb.org/mongo-driver/bson" "go.mongodb.org/mongo-driver/bson"
"go.mongodb.org/mongo-driver/bson/primitive" "go.mongodb.org/mongo-driver/bson/primitive"
"go.mongodb.org/mongo-driver/mongo/options" "go.mongodb.org/mongo-driver/mongo/options"

View File

@ -5,9 +5,9 @@ import (
"errors" "errors"
"sync" "sync"
"github.com/Selly-Modules/mongodb" "git.selly.red/Selly-Modules/mongodb"
"github.com/Selly-Modules/usermngmt/internal" "git.selly.red/Selly-Modules/usermngmt/internal"
"github.com/Selly-Modules/usermngmt/model" "git.selly.red/Selly-Modules/usermngmt/model"
"go.mongodb.org/mongo-driver/bson" "go.mongodb.org/mongo-driver/bson"
) )

View File

@ -4,9 +4,9 @@ import (
"context" "context"
"fmt" "fmt"
"github.com/Selly-Modules/logger" "git.selly.red/Selly-Modules/logger"
"github.com/Selly-Modules/usermngmt/database" "git.selly.red/Selly-Modules/usermngmt/database"
"github.com/Selly-Modules/usermngmt/model" "git.selly.red/Selly-Modules/usermngmt/model"
"go.mongodb.org/mongo-driver/bson" "go.mongodb.org/mongo-driver/bson"
"go.mongodb.org/mongo-driver/bson/primitive" "go.mongodb.org/mongo-driver/bson/primitive"
"go.mongodb.org/mongo-driver/mongo/options" "go.mongodb.org/mongo-driver/mongo/options"

View File

@ -6,12 +6,12 @@ import (
"fmt" "fmt"
"sync" "sync"
"github.com/Selly-Modules/logger" "git.selly.red/Selly-Modules/logger"
"github.com/Selly-Modules/mongodb" "git.selly.red/Selly-Modules/mongodb"
"github.com/Selly-Modules/usermngmt/cache" "git.selly.red/Selly-Modules/usermngmt/cache"
"github.com/Selly-Modules/usermngmt/config" "git.selly.red/Selly-Modules/usermngmt/config"
"github.com/Selly-Modules/usermngmt/internal" "git.selly.red/Selly-Modules/usermngmt/internal"
"github.com/Selly-Modules/usermngmt/model" "git.selly.red/Selly-Modules/usermngmt/model"
"github.com/thoas/go-funk" "github.com/thoas/go-funk"
"go.mongodb.org/mongo-driver/bson" "go.mongodb.org/mongo-driver/bson"
"go.mongodb.org/mongo-driver/bson/primitive" "go.mongodb.org/mongo-driver/bson/primitive"

View File

@ -4,13 +4,13 @@ import (
"errors" "errors"
"fmt" "fmt"
"github.com/Selly-Modules/logger" "git.selly.red/Selly-Modules/logger"
"github.com/Selly-Modules/mongodb" "git.selly.red/Selly-Modules/mongodb"
"github.com/Selly-Modules/usermngmt/cache" "git.selly.red/Selly-Modules/usermngmt/cache"
configMoudle "github.com/Selly-Modules/usermngmt/config" configMoudle "git.selly.red/Selly-Modules/usermngmt/config"
"github.com/Selly-Modules/usermngmt/database" "git.selly.red/Selly-Modules/usermngmt/database"
"github.com/Selly-Modules/usermngmt/internal" "git.selly.red/Selly-Modules/usermngmt/internal"
) )
// RedisConfig ... // RedisConfig ...