diff --git a/encipher/aes.go b/encipher/aes.go index 9a54182..9a2db64 100644 --- a/encipher/aes.go +++ b/encipher/aes.go @@ -26,7 +26,7 @@ func New() { JwtSecretLen = len(env.MeshEnv.JwtSecretKey) } -func GenerateTokenAes(id uint, identity, client, role string, extend map[string]string) (string, error) { +func GenerateTokenAes(id uint, identity, client, role string, owner any, extend map[string]string) (string, error) { if (JwtSecretLen == 16 || JwtSecretLen == 24 || JwtSecretLen == 32) == false { return "", exception.ErrAuthSecret } @@ -35,7 +35,7 @@ func GenerateTokenAes(id uint, identity, client, role string, extend map[string] ID: id, Identity: identity, Extend: extend, - Client: client, + Owner: owner, Role: role, ExpiresAt: expireTime.Unix(), }