mirror of
https://github.com/casdoor/casdoor.git
synced 2025-07-03 12:30:19 +08:00
Add user's id.
This commit is contained in:
@ -17,6 +17,8 @@ package util
|
||||
import (
|
||||
"errors"
|
||||
"strings"
|
||||
|
||||
"github.com/google/uuid"
|
||||
)
|
||||
|
||||
func GetOwnerAndNameFromId(id string) (string, string) {
|
||||
@ -27,3 +29,7 @@ func GetOwnerAndNameFromId(id string) (string, string) {
|
||||
|
||||
return tokens[0], tokens[1]
|
||||
}
|
||||
|
||||
func GenerateId() string {
|
||||
return uuid.NewString()
|
||||
}
|
||||
|
Reference in New Issue
Block a user