mirror of
https://github.com/casdoor/casdoor.git
synced 2025-09-09 04:42:55 +08:00
fix: replace casdoor with casbin (#194)
Signed-off-by: sh1luo <690898835@qq.com>
This commit is contained in:
@@ -16,7 +16,7 @@ package original
|
||||
|
||||
import (
|
||||
"github.com/astaxie/beego"
|
||||
"github.com/casdoor/casdoor/object"
|
||||
"github.com/casbin/casdoor/object"
|
||||
_ "github.com/go-sql-driver/mysql" // db = mysql
|
||||
//_ "github.com/lib/pq" // db = postgres
|
||||
)
|
||||
|
@@ -17,7 +17,7 @@ package original
|
||||
import (
|
||||
"fmt"
|
||||
|
||||
"github.com/casdoor/casdoor/object"
|
||||
"github.com/casbin/casdoor/object"
|
||||
)
|
||||
|
||||
func isEnabled() bool {
|
||||
|
@@ -19,8 +19,8 @@ import (
|
||||
"strconv"
|
||||
"strings"
|
||||
|
||||
"github.com/casdoor/casdoor/object"
|
||||
"github.com/casdoor/casdoor/util"
|
||||
"github.com/casbin/casdoor/object"
|
||||
"github.com/casbin/casdoor/util"
|
||||
)
|
||||
|
||||
func getFullAvatarUrl(avatar string) string {
|
||||
|
@@ -14,7 +14,7 @@
|
||||
|
||||
package original
|
||||
|
||||
import "github.com/casdoor/casdoor/object"
|
||||
import "github.com/casbin/casdoor/object"
|
||||
|
||||
func getUsers() []*object.User {
|
||||
users := object.GetUsers(orgName)
|
||||
|
@@ -18,7 +18,7 @@ import (
|
||||
"strconv"
|
||||
"strings"
|
||||
|
||||
"github.com/casdoor/casdoor/util"
|
||||
"github.com/casbin/casdoor/util"
|
||||
)
|
||||
|
||||
type User struct {
|
||||
|
@@ -19,7 +19,7 @@ import (
|
||||
"testing"
|
||||
"time"
|
||||
|
||||
"github.com/casdoor/casdoor/object"
|
||||
"github.com/casbin/casdoor/object"
|
||||
)
|
||||
|
||||
func TestGetUsers(t *testing.T) {
|
||||
|
Reference in New Issue
Block a user